This tutorial bypassed some basic JavaScript syntax, directly explaining the two most difficult parts of JavaScript, and the two most significant differences from other mainstream object-oriented languages-prototypes and closures, and of course, the
This is my second article on JavaScript, which has been a few years of Java development and found that JavaScript is an object-oriented language but it does have a lot of differences. In this blog, the main learning to summarize the recent learning
One, what is closuresfunctionfoo () {varA = 2; //the lexical scope of the function bar () can access the internal scope of the function foo (). Pass the bar () function as a value. //Bar () declares within Foo () that it has a closure that
In some complex pages, we often use JavaScript to deal with some of the dynamic effects of DOM elements, which is often used to calculate the location and size of some elements, the browser compatibility problem is not negligible, to write the
CharacterThe Javassript program is written in the Unicode character set , Unicode is a superset of ASCII and Latin-1, and supports almost all languages in use. ECMAScript 3 requires that JAVASCRIPT implementations must support Unicode 2.1 and
Use the function in JS to note three points:1, when the function is called, it is run in the syntax environment when he is declared;2, the function can not run itself, it is always called by the object, when the function is run, the function body of
Equality operators
Equality and inequalityWhen converting different data types, the equality and not the wait operators follow the basic rules below:
If one of the operands is a Boolean value, convert it to a numeric--false
small mistakes in JavaScript-------common error Four: comparison operatorsone of the more convenient parts of JavaScript is the ability to force each result variable in a comparison operation into a Boolean type. But on the other hand, sometimes it
One of the hottest technologies in Today's JavaScript technology World is ' event delegation '. Using Event delegation techniques allows you to avoid adding event listeners to a particular node, and instead, event listeners are added to their parent
The combination pattern is the use of small sub-objects to build larger objects, and these small sub-objects may be made up of smaller "grandchild objects".Combined mode combines objects into a tree structure to represent a "partial-whole" hierarchy.
The first method: the use of JSON objects, if no JSON object is added, otherwise not added, and finally return the properties of the JSON object, the time complexity of O (n)
function deletearrayrepeat (arr) { var result = {};
PrefaceThe design pattern is defined as a simple and elegant solution to a particular problem in the object-oriented software design process. From some point of view, the design pattern does have the potential to increase the amount of code, perhaps
/** @ JavaScript does not have the concept of classes, so base on object creation is different from object-oriented language* The common methods of object creation and their limitations* @ Use object or object literal to create objects* @ Factory
Css3 selector and css Selector
Wildcard SelectorThe wildcard selector takes effect for all elements on the page,All the tags on the page will display the style set by the wildcard selector.The disadvantage is that it affects the page rendering time.
Example code of magnifiers implemented by native JS and js magnifiers
This is the magnifier I wrote with native js. Compared with various framework technologies, I like to use native js. Here, I would like to share with you the understanding and
Summary of common JS functions and techniques, and summary of js skills
What is summarized during the learning and work process, including common functions, common js skills, common regular expressions, git notes, and so on. It provides a simple
Summary of the application skills of the apply method in JavaScript and the apply Application Skills
Preface
Recently, I have been looking at the JavaScript design patterns, some of which are clever functions. Therefore, after some modifications are
Precautions for using BootStrap Validator (required), bootstrapvalidator
If the front-end framework you use is bootstrap, you do not need to consider the front-end verification framework. bootstrapvalidator is the best choice. It works perfectly
The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion;
products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the
content of the page makes you feel confusing, please write us an email, we will handle the problem
within 5 days after receiving your email.
If you find any instances of plagiarism from the community, please send an email to:
info-contact@alibabacloud.com
and provide relevant evidence. A staff member will contact you within 5 working days.
A Free Trial That Lets You Build Big!
Start building with 50+ products and up to 12 months usage for Elastic Compute Service