Page load event -- DOMContentLoaded

The difference between DOMContentLoaded and window.onload When the page is fully loaded, it will trigger window.onload event. We know that we can use window.onload event to trigger and execute javascript scripts that need to be loaded before the page can be executed. But if the page contains many style files, picture files, sub-frame pages (ifr ...

Posted by Havenot on Thu, 11 Apr 2019 16:06:31 -0700

Summary of JS callback function

What is a callback function? In computer programming, call back function, or call back for short, refers to the reference of a piece of executable code passed to other code by function parameters. This design allows the underlying code to call subroutines defined at a higher level. Quoted from Wikipedia Programming falls into two cat ...

Posted by sumitnice@rediffmail.com on Wed, 10 Apr 2019 23:42:31 -0700

WEB API Project Dry Goods Series - Interface Documentation and Online Testing (II)

Last article: [WEB API Project Practical Dry Goods Series] - Introduction to Web API 2 (1) In this article, we mainly introduce how to do API help documentation, introduce API callers to the API functions, input parameters, output parameters, and online testing API functions (this is also convenient for our own development and debugging) Let's ...

Posted by whatwhat123 on Mon, 08 Apr 2019 19:18:31 -0700

JQuery - Style (attributes and styles of jQuery)

Attributes and Styles of jQuery attr() and. removeAttr() <!DOCTYPE html> <html> <head> <meta http-equiv="Content-type" content="text/html; charset=utf-8" /> attr() and. removeAttr ()</title> attributes and styles of <title> jQuery <style> input { display : block ...

Posted by eezmo on Mon, 08 Apr 2019 18:45:31 -0700

Vue2+VueRouter 2+webpack Construction Project (4) Connect the api and render a list first

Vue2+VueRouter 2+webpack Construction Project (4) Connect the api and render a list first Catalog Index "Vue2 + VueRouter 2 + webpack construction project actual combat (1) preparation work" "Vue2 + VueRouter 2 + webpack Construction Project Actual Warfare (II) Directory and File Structure" "Vue2+VueRoute ...

Posted by CBaZ on Sun, 07 Apr 2019 14:48:30 -0700

A small amount of JQuery+CSS3 code to implement the wheel seeder (first writing articles, ideas, writing is not enough, light spray)

1. Preface, read a lot of wheel seeder code; but in mind, always think about whether there is a simple way to achieve the same effect. Search this (the link below), bright in front of you, then start to practice improvement. The main work, or the first paragraph of the article, "if there is a picture in the middle interval, then in the exe ...

Posted by Stickybomb on Sat, 06 Apr 2019 19:24:31 -0700

jQuery+PHP Upload Cut Pictures

Here is a simple example of jquery image preview + clipping. The principle is to get the information to be clipped at the front end, such as aspect ratio, clipping coordinates, upload the picture and then cut it in php at the back end. jquery code (must be introduced at the end) function showCutImg(showImg){ ...

Posted by acroporas on Sat, 06 Apr 2019 17:54:31 -0700

React Life Cycle Explanation

React abandons the manual DOM operation which consumes a lot of performance. It uses diff algorithm to change the DOM by changing the control component state and props. When the DOM needs to change, it will first occur on the virtual DOM, rendering the actual part of the change on the real DOM, which can greatly improve the performance. ...

Posted by jakebur01 on Fri, 05 Apr 2019 21:09:32 -0700

Front End: Edit Box for Jobs

Foreword: In learning jQuery these days, I feel that the knowledge of jQuery is more and more miscellaneous than that of Dom. The next edit box assignment starts with a foreplay for jQuery, and then writes jQuery tomorrow or the day after tomorrow. Requirements (see figure below): With one click of the edit button, you can get information abou ...

Posted by n_wattam on Fri, 05 Apr 2019 09:39:31 -0700

Use of Nicescroll Scrollbar Plug-in

From: http://www.cnblogs.com/jinqi79731/p/nicescroll.html Nicescroll scrollbar plug-in is a very powerful JQUERY-based scrollbar plug-in, which is almost browser-compatible without additional css. ie6 +, only a piece of code is needed to implement, the intrusion is very small, the style can be fully customized, support touch events, and can be ...

Posted by david_s0 on Thu, 04 Apr 2019 17:57:29 -0700