Category : javascript

JS common method function String length truncation Inert evaluation closure Basic Package Type (Package Object) Object traversal (best method) Array traversal (built-in method) How do you determine whether an object is an array? Addition table Sort method Prefix specification Douglas’ object method (equivalent to the object.create method) 1. String length interception function cutstr(str, len) { ..

Read more

HTML5 Using FileReader to Preview Front-end Pictures How to get all checkbox in the page? (No Third Party Framework) JavaScript Template Engine Instances Javascript Implement JS function overload JS Cross Browser Binding Event Function JS monomer mode Object method defined using prototype property Closure Implements Result Caching Closures Implement Encapsulation Closures Implement Classes and Inheritance ..

Read more

Collect regular expression instances that are often used in business to facilitate later search and reduce workload. Verify Basic Date Format Verify password strength Check Chinese A string of numbers, 26 English letters, or underscores Verify E-Mail address Verify ID Number Verification date Check amount Check the phone number Judging IE version Verify IP-v4 address ..

Read more

Recently, I am studying deeply and trying to master it as soon as possible.Node.jsConsider writing an article to record what needs to be recordedConcept„ÄĀMethodas well asCode instanceTo facilitate searching in actual projects. This article will be updated continuously, or another article will be published to discuss more core and key technical issues. This is a ..

Read more

Ajax status code,xhr.readyState 0: unsent not sent, Ajax object created, default value 01: Opened Executionxhr.open2: headers _ received the current ajax request has been sent and the corresponding header information returned by the server side has been received3: Loading Response Body Content Returning4: Done’s corresponding subject content has been returned to the client Http network ..

Read more

Recently, I have been sorting out the technical details of the whole stack development and writing a document for easy searching. I share this site here.Address:Full stack development Full stack development HTML5/CSS3 HTML element Semantic label CSS3 style CSS selector CSS inheritance properties CSS3 Core Module CSS box model CSS background image CSS clear float ..

Read more

JQuery learning notes Most of jQuery’s functions need to work according to the DOM model of the document. First, it needs to correctly parse the DOM model structure of the entire document. Using jQuery requires the entire document to be fully loaded by the browser before it can be started. $(document).ready(function () { alert(“Hello World!”); ..

Read more

Webpack configuration To view all document pages:Full stack developmentFor more information. Original link:Chapter 2 Configuration, the original advertising mode box block, reading experience is not good, so organize the text, easy to find. There are two ways to configure a Webpack: Describe the configuration through a JavaScript file, such as usingwebpack.config.jsConfiguration in file; When executing ..

Read more

Webpack optimization To view all document pages:Full stack developmentFor more information. Original link:Webpack optimization, the original advertising mode box block, reading experience is not good, so organize the text, easy to find. Optimize development experience Optimizing Construction Speed. When the project is huge, the construction time may become very long, and the time spent waiting ..

Read more

Webpack principle To view all document pages:Front-end development documentFor more information.Original link:Webpack principle, the original advertising mode box block, reading experience is not good, so organize the text, easy to find. Summary of working principle Basic concept Before understanding the principle of Webpack, we need to master the following core concepts to facilitate the following ..

Read more

Webpack appendix To view all document pages:Full stack developmentFor more information.Original link:Webpack principle, the original advertising mode box block, reading experience is not good, so organize the text, easy to find. Loaders in common use Load file raw-loader: Load the contents of the text file into the code, in3-20 Load SVGIt is introduced in. file-loader: ..

Read more