Knowledge points
function definition
Function call
Pass the reference
return value of the function
Scope of the variable
anonymous functions
callback function
Self-tuning function
inline functions
As you may know, the execution environment of the JavaScript language is "single thread".The so-called "single thread" means that only one task can be completed at a time. If you have multiple tasks, you must queue, complete the previous task,
The overall structure of the code is one of the main factors affecting the speed of operation. A small number of code is a prototype faster, the number of code does not mean that the running speed must be slow.1. CycleType:1) for the initialization,
OK, no more nonsense, and then the last article.Variable (variables)Always use the var keyword to define the variable, assuming that this will cause the variable to be global, causing pollution.BadSuperPower = new SuperPower ();Goodvar superPower =
In the normal development, there are always some ways we can be useful in different places, so we will encapsulate these methods. When we need to develop a function, we need to use a combination function (there is a link between multiple functions,
First, the prototype chain inheritanceIn the context of prototype chain inheritance, JavaScript is similar to languages like Java, C #, and allows only single-parent classes to inherit. The basic way of prototype inheritance is as follows:NewThe
Variable ObjectThe first thing to say is the variable object. What else is stored in the variable object.The runtime environment in JavaScript contains both the global run environment and the function run environment, and each entry into a running
Describes how to use the jquery event delegate (), jquerydelegate
Let's take a look at how the delegate () method officially works. The delegate () method adds one or more event handlers to the specified element (a child element of the selected
How to Use CSS to implement a left-side fixed-width, right-side Adaptive Layout of two columns, css two columns
I recently saw a question in the Baidu IFE training camp:
Two different methods are used to implement a layout of two columns. The width
JQuery Table operations tips summary and jquerytable skills
This article summarizes jQuery's Table operations skills. We will share this with you for your reference. The details are as follows:
1. Move the mouse to change color
Method 1: hover (fun (
Details on mutual conversion between strings and arrays in js, and details on js string Arrays
I recently read a JS interview question, which is described as follows: using var s1 = prompt ("Please input any string", "") to get user inputString, try
JQuery tips and tips that you cannot learn elsewhere (Welcome to favorites)
The following small series will help programmers with 8 skills, as shown below:
1) Disable right-click
JQuery programmers can use this code to disable right-clicking on a
Details about the Javascript template engine mustache. js and mustache template engine
This article summarizes its usage methods and some usage experiences. The content is not very advanced. It is purely an entry-level content. Just take a look.
JQuery simulates the free object drop motion (with demo and demo source code download), jquery source code download
This article provides an example of jQuery's method for simulating the motion of an object. We will share this with you for your
Jquery mobile development FAQ analysis, jquerymobile
This article provides examples to analyze common issues in jquery mobile development. We will share this with you for your reference. The details are as follows:
Jquery mobile is very powerful.
The jQuery validate plugin implements two methods for repeated ajax verification: jqueryvalidate
The example in this article describes two methods for the jQuery validate plug-in to implement repeated ajax verification. We will share this with you
Example of jQuery. fancybox. js usage and fancybox usage
This document describes how to use the jQuery. fancybox. js plug-in the jquery bullet layer. We will share this with you for your reference. The details are as follows:
Fancybox is a jquery
CSS or JS enables the mouse to hover over and display another element. css hover over
To move the cursor over element a and display another element B, you can use css or js.
Js:
Write two functions: mouseenter and mouseleave. For
Describes how to Implement Asynchronous verification and javascript verification using the traditional javascript method.
When learning JavaScript asynchronous verification, we often start with the most traditional XMLHttpRequest. This article will
Examples of using the class in the oop mode of jquery, jqueryoop
This example describes how to use the class in the oop mode of jquery. We will share this with you for your reference. The details are as follows:
Here we use class to manage various
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