Fetch concept Fetch is a new object in H5. It was born to replace the existence of ajax. Its main purpose is just to combine with ServiceWorkers to achieve the following optimization: optimize offline experience and maintain scalability. Of course, if Ser
There is something very strange: I clicked a button in a pop-up window, and unexpectedly the pop-up window disappeared. After debugging by the company's js master, I discovered the secret. Copy the code as follows: <button onclick="add_q()">Add a ques
Note: Upload it with AJAX, the file cannot be too large, it is best to be less than three or four hundred trillion, because excessive continuous AJAX requests will collapse the background, and the data in InputStream will be empty, especially during the G
When uploading pictures, I found a very useful control. It supports uploading multiple pictures at the same time. You can click to select a picture, or you can drag the picture to the upload box and upload it directly. It is convenient, easy to use, and t
Block element (block element) HTML tag classification details * address - address * blockquote - block quote * center - alignment block * dir - directory list * div - commonly used block level is also the main mark of CSS layout
The content displayed on the written JQuery page has no margins, and the content is close to the browser edge, which is particularly ugly (as shown below). The code is as follows: Copy the code and the code is as follows:<body><form id="form1" runat="serv
Two days ago, a pretty girl who was learning HTML5 front-end asked me about how to achieve the effect of text shadow. She told me about text-shadow. She also knew about text-shadow, but she couldn't make it look the way she wanted. In fact, the new fe
JavaScript functions are different from other languages. Each function is maintained and run as an object. Through the properties of function objects, you can easily assign a function to a variable or pass the function as a parameter. Before continuing, l
Recently, the company made an H5 page for students to vote. It is mainly used on WeChat and needs to add the WeChat sharing function. This article mainly records the matters that need to be paid attention to when calling the WeChat sharing interface. 1. T
Author's note: There was no response when I used the onchange event today. Finally, I checked the information and found out about the limitations and instability of Onchange. But onpropertychange can be implemented very well, especially its real-time
In addition to the formal parameter defined during the statement when calling, each function accepts two additional parameters: this and arguments. This is very important in object -oriented programming, depending on the call mode. JavaScript has four cal