Translated from: http://blog.jobbole.com/51786/At Airbnb, we've learned a lot about building rich applications over the years, and since 2011 we've been working on Single-page applications, especially after we officially launch wish lists and our
These URI methods encodeURI, encodeURIComponent (), decodeURI (), decodeuricomponent () Replace the Escape () and unescape () methods of the BOM. URI methods are preferable because they encode all Unicode symbols, whereas the BOM method can encode
1. Related element operation:var a = document.getElementById ("id");var B = a.nextsibling, find the next sibling element of a, note the spacevar B = a.previoussibling, find the previous sibling element of a, note the spacevar B = A.parentnode, find
In JS, in general, the data types are divided into two categories, one is the original value type, and the other is the reference type. The original value types include: string , Numeric (number) , boolean (Boolean) , and two special values null
In a variety of data types, we will define a "null" or "false value" for it, such as a null value for the object type null, a null value for the database field in the. NET Framework DBNull, a Boolean type of false value False and so on. There are
variables, scopes, and memory issues
There are two types of execution environment-Global and local
The scope chain is longer, there are two cases: the catch block of the Try-catch statement, the WITH statement.
JavaScript does not
Style : Gets the inline style;currentstyle: Gets the calculated style, also called the current style, the final style. Pros: You can get the final style of an element, including the default value of the browser, rather than just the inline style, as
ECMAScript is an object-oriented language technically, but it does not have the basic structure of classes and interfaces supported by the traditional object-oriented language. Although reference types look similar to classes, they are not the same
If the jackson object to json is NULL or empty, serialization is not performed.
1. Entity
@ JsonInclude (Include. NON_NULL)
// Place the tag on the property. If the property is NULL, it is not involved in serialization.// If it is placed on the
One jquery achieves a good multi-line text image scrolling effect, jquery multi-line
Today, I will share a jquery file to implement multi-row scrolling.
I have read a lot of announcements on some Forum websites.
The Code is as follows:
// Multi-row
JQuery fixed floating sidebar Implementation ideas and code, jquery ideas
This function is now widely used. If the page is relatively high, when the scroll bar is dragged to the bottom of the page, a fixed DIV box following the browser will appear
Sample Code of the javascript custom callback function and sample code of the callback function
If you call function a directly, this callback function will be suspended. However, using a function as a parameter has the following benefits: When a (B)
Alert generates the random value code in the array, and the alert array value code
Js Code
/** Then alert returns the array value * a, indicating the array */function alert1 (a) {var alength =. length; if (alength> 1) {var r = random1 (0, alength);
Deep understanding of javascript prototype chain and inheritance
Javascript itself is not an object-oriented language, but an object-based language. For those who are used to other OO languages, it is not suitable at first, because there is no
Google Chrome does not support the solution to the showModalDialog modal dialog box, showmodaldialog Modal
Suddenly found that Chrome version 37.0.2062.103 m does not support showModalDialog modal dialog box and cannot return returnValue
Projects
Implementation example of native JavaScript generation GUID, javascriptguid
GUID (globally unified identifier) refers to the number generated on a machine, which ensures that all machines in the same time and space are unique. Generally, the
Detailed description of Javascript Objects, javascriptobjects
Create object
• Direct object quantity
var o = { foo : "bar" }
• Constructor
var o = new Object();
• Prototype inheritance
var p = Object.create(o);
Class inheritance
Javascript
Egret Engine Development Guide-running project, egret engine guide project
This is an exciting summary, because in this summary, you can finally see the running effect of your first Demo.
1. Run the game with Egret
To run the Egret project, we need
[View JavaScript from jQuery]-JavaScript, jquery-javascript
What is JavaScript? I believe Baidu and Google can find a lot of definitions and explanations. In my understanding, JavaScript is a client script language used to process page data logic
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