Synchronous and Asynchronous Loading of JavaScript Files

References to JS files are handled well by many frameworks and tools (such as webpack, commonjs, requiresjs, etc.). Despite these frameworks, it is helpful to understand the native loading method. This paper briefly describes the synchronous and asynchronous loading methods of some JS files. Synchronous loading It can be inserted in html file w ...

Posted by tomato on Sun, 02 Jun 2019 13:38:05 -0700

Teacher PHP hasn't taught you those knowledge points.

Another way of writing is surprising. When we read some source code, we find an alternative way of writing, such as //Abnormal writing if(false == $result) //Normal writing if($result == false) In fact, this is a very clever way of writing, it can largely eliminate the serious bug s caused by hand errors. If we miswrite = as = in the ...

Posted by dmcke5 on Sun, 02 Jun 2019 11:20:22 -0700

Ajax Callback Hell in jQuery Notes

This demo calls back to Hell: Simulate the movie website to determine whether the user is the VIP user of the website (the maximum permission is vip) If the vpi shows the vip movie, click on the corresponding movie to show the details of the movie. ------------------------------------------------------------------ Let's first look at the fi ...

Posted by Fredix on Fri, 31 May 2019 11:24:01 -0700

[For CSS-3.css Advancement]

1. Content Generation Role: Adding new content to existing tags using css Method: Through pseudo-element selector (before, after) 1. Attribute:content 2. Value: 1. String: plain text, caused by the use of "" 2. url(): Generate an image to a specified content area 3. Counter Using content generation to generate icons ...

Posted by explore on Wed, 22 May 2019 13:33:17 -0700

es6 series of tutorials - Set Detailed Explanation and Application of Draw Program

We are still starting from some existing needs and problems. Why is there a set? What problems does it exist to solve? Let's look at an example of adding key-value pairs to an object 1 var obj = Object.create( null ); 2 obj[5] = 'ghostwu'; 3 console.log( obj["5"] ); //ghostwu 4 console.log( obj[5] ); //ghostwu With null as the protot ...

Posted by tinyashcities on Wed, 22 May 2019 13:22:55 -0700

2017-9-26 html model and centralization method

title: 2017-9-26 html model and centralization method date: 2017-09-26 18:07:38 tags: [HTML5,CSS3] grammar_cjkRuby: true Welcome to my personal blog Personal Blog of Never Island HTML model Box model The box model can be imagined as a packaged moon cake, div, content, padding between the moon cake and the box, margin between the ...

Posted by axman505 on Tue, 21 May 2019 13:04:39 -0700

Advanced JavaScript Programming (3rd Edition) Reading Notes Chapter 6 Object-Oriented Programming

Object-Oriented (OO) languages have a flag that they all have the concept of a class through which any number of objects with the same properties and methods can be created. There is no class concept in ECMAScript, so its objects are different from those in the language of the base class. ECMA-262 defines an object as "a collection of dis ...

Posted by cshaw on Sat, 18 May 2019 12:37:07 -0700

PhoneGap JS Cross-Domain Request

                PhoneGap development offers theoretical benefits.However, because javascript is the hero and stored directly in the mobile phone, interacting with server data will cause a cross-domain access problem. Of course, there must be a solution to this problem, otherwise, this hybrid APP model using PhoneGap and others w ...

Posted by webster08 on Sat, 18 May 2019 05:41:36 -0700

Introduction to the Official Course of egg.js

I. Preface of the article egg.js is a web background framework of node.js, which brings us too much convenience in developing web background. There are many other frameworks like express and koa. This article will focus on egg. js, because it is a very strict MVC development model. eggJS "Agreement over Configuration" II. Prepa ...

Posted by buddysal on Fri, 17 May 2019 10:45:20 -0700

Full examples of functional components

Previously created components were relatively simple, with no management or monitoring of any state passed to them, and no lifecycle approach. It's just a function that receives parameters. In the following example, we mark the component as functional, which means that it is stateless (no responsive data) and no instance (no this context). A f ...

Posted by navarre on Thu, 16 May 2019 03:02:24 -0700