JSON (JavaScript Object Notation) is a simple data format that is lighter than XML. JSON is a native JavaScript format, which means that working with JSON data in JavaScript does not require any special APIs or toolkits.The rules of JSON are simple:
"Add event mechanism" AddEventListener and attachevent[The]AddEventListener (' click ', function () {alert (' Hello World ')}, FALSE)//W3C specification add event (IE8 and above incompatible); The first argument is the event type, the second is the
In C #, there are variable length parameters params[], but in JS, how to implement this variable parameter?one, variable length parametersArguments is a very good solution and has never known JavaScript to have this thing.Let's take a look at the
1, | | (Logical OR),Literally, it returns false only when both the front and back are false, otherwise it returns true.alert(true||false); //truealert(false||true); //truealert(true||true); //truealert(false||false); //falseThis fool
function declaration and function Expression differenceA function declaration declares a function by the function name () {}A function expression is declared by declaring a variable and then assigning a function.The difference is that before the
JavaScript Gets the element node A total of three methods, respectively, through the element ID, through the tag name and through the class name to obtain;1. Get element object by ID value of element id attribute-getElementById ()The DOM provides a
There are 5 simple data types (also known as basic data types) in ECMAScript:Undefined, Null, Boolean, number, string, and object-complex data types, object Essentially consists of a set of unordered name-value pairs.typeof operatorSince ECMAScript
The JavaScript function does not support overloading. Sometimes we want to define overloaded methods like Java, C and other languages, so we can define overloaded functions in other ways. Of course, there are many ways to achieve it, and everyone
Using cookies we already know that there is a cookie attribute in the Document object. But what is a Cookie? " Some WEB sites store information on your hard disk with very small text files, which are called cookies. "--msie help. In general, cookies
String and array as JavaScript built-in objects, many of the methods, whether in the development process, or at the time of the interview have the opportunity to be asked by the interviewer, here is a frequently used method to do an introduction,
0. PrefaceRecently, I just finished the last section of the work, the results immediately began a new round of work, to express innocence, (O′?ェ ' O), the program Ape is really a dead tired people work.This evening to see colleagues new unsealed
NanyiDouglas Crockford is the JavaScript authority, and the Json format is his invention.Last November he had a speech (Youtube) about what a good JavaScript programming style was.I highly recommend this speech, which not only helps to learn
CSS3 animation callback processing and CSS3 animation callback Processing
Callback processing is often required for js animation, such as triggering an event after an animation is complete, and executing another animation after an animation is
HTML5 and CSS3 instance tutorial [Summary 1], html5css3
Onclick behavior and content Separation
Holiday Pay
If the JS disabled link cannot direct the user to the corresponding page, do not assign "#" and similar values to the href attribute.
2.
Front-end development function page display, front-end development display
1. controls used this time
Button group as flip button: http://v3.bootcss.com/components/#btn-groups-single
2. Engineering address:
Different css bem specifications and cssbem specificationsIntroduction
Since its birth, humans have been constantly solving problems, whether by cutting wood for fire or making weapons.
Therefore, human progress is a process of constantly solving
Example of jquery plug-in autocomplete usage, jqueryautocomplete
This example describes how to use the jquery plug-in autocomplete. We will share this with you for your reference. The details are as follows:
(1) Introduce js and styles
(2)
JQuery plug-in simple learning instance tutorial, jquery plug-in instance tutorial
This document describes the jQuery plug-in and its usage. We will share this with you for your reference. The details are as follows:
(1) asynchronous paging plug-in
Javascript controls the read-only or writable attributes of text fields. JS text
This article describes how JavaScript controls the read-only or writable attributes of text fields. We will share this with you for your reference. The details are as
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