(4) JavaScript enhancement (two parts: BOM programming, event programming)

1 BOM programming 1.1 INTRODUCTION (in the previous section (3), we introduced the basic syntax of JavaScript, and in this section, we introduced BOM programming.) BOM is the programming of browser object model. The four browser objects provided by javascript engine operate browser, which is called BOM programming. 1.2 window object (import ...

Posted on Tue, 05 May 2020 17:33:31 -0400 by sachin_wal

Native JS simply encapsulates JSONP to get data across domains

Encapsulating a simple JSONP with native JS is mainly used to understand how the front end implements JSONP.   JSONP cross domain requests data across domains by using the src attribute of < img > < script > and the href attribute of < link > to link external websites. Submit the cross domain request links and parameters to th ...

Posted on Tue, 05 May 2020 16:58:33 -0400 by knashash

Oracle (PLSQL) introduction 7

Learning video: https://www.bilibili.com/video/BV1tJ411r7EC?p=74 Design database steps: Good database design: save space, complete data, easy to develop. Steps: 1. Collect information 2. Identify entity 3. Identify entity attribute 4. Identify relationship between entities 5. Draw E-R diagram and write Sql Concept understanding: Mapping cardin ...

Posted on Tue, 05 May 2020 13:48:10 -0400 by fiddler80

CSS layout page layout

Web page is essentially the location between blocks, blocks next to blocks, blocks nested blocks, blocks stacked blocks. Three relationships: adjacent, nested, and overlapping.   Here are some common ways of web page layout     1. One column layout: Generally, it is a fixed width and height. Set Margin: 0 Auto to center horizontally, w ...

Posted on Tue, 05 May 2020 13:00:39 -0400 by vonnero

Spring boot realizes Excel function of data export in database

Function introduction A lot of data export codes have been found on the Internet, which may be due to the weakness of their own foundation or other reasons. As a result, they have not run successfully. Even if they run successfully, the results are unsatisfactory. In this summary, I will learn from a demo that has been integrated by others. ...

Posted on Tue, 05 May 2020 09:17:42 -0400 by climbjm

Extjs to display and hide password box

As it seems that extjs can't change the type attribute of text box, it can't change the type dynamically. The idea of implementation is to place two text boxes in the same position, one of which is inputType: 'password', and the other is normal text box. Use a checkboxgroup to change the display and hide of passwords. When changing, the display ...

Posted on Tue, 05 May 2020 06:42:01 -0400 by KC_Geek

How is the random algorithm of wechat red packet implemented?

I see such a problem in Zhihu How is the random algorithm of wechat red packet implemented? Some people say that Tencent is basically achieved in this way: public static double getRandomMoney(LeftMoneyPackage _leftMoneyPackage) { // Remansize remaining number of red packets // remainMoney if (_leftMoneyPackage.remainSize == 1) { ...

Posted on Tue, 05 May 2020 05:11:08 -0400 by vB3Dev.Com

Gin go learning note 4: upload and download of gin web framework file

File upload and download 1 - > file upload File upload, the use of uploadify.js plug-in In this case, the image file is uploaded, so are other files. 2 - > download of files There are two ways to download files: 1 - > URL path points to the path of the file, which is downloaded by the browser. However, this method has some defects: ima ...

Posted on Tue, 05 May 2020 03:02:15 -0400 by bbxrider

Bootstrap uses modal box modal to implement form submission pop-up box

A Modal box is a subform that is overlaid on the parent form. In general, the purpose is to display content from a single source, with some interaction without leaving the parent form. Subform can provide information, interaction, etc. If you want to refer to the plug-in's functions separately, you need to refer to modal.js. Or, as mentioned i ...

Posted on Mon, 04 May 2020 23:32:21 -0400 by AnAmericanGunner

The background color in Winform can be set as a translucent RichTextBox

background There was another problem with the serial port tool made last time. The window requires pictures as the background, but RichTextBox can't set the background color to Transparent. A white frame covers most of the pictures. It's ugly and hot. Looking for information on the website, I found a very simple way: ...

Posted on Mon, 04 May 2020 22:54:20 -0400 by TheMightySpud