What is JSON
Json:javascript Object Notation (JavaScript object notation).
JSON is in the form of a list of items surrounded by braces "{}", separated by commas (,), and the item is the property name and attribute value separated by a colon (:).
This program is the use of 3.x Firefox browser can read the characteristics of local files, to achieve through the XMLHttpRequest upload large file features, and in the process can upload dynamic display upload progress. Slightly modified, and with
JavaScript literal volumeIn a programming language, a literal is a constant, such as 3.14.The number literal can be either an integer or a decimal, or a scientific count (e).
3.14
1001
123e5
string literal can use either single or
From the beginning, the arrows are part of the JavaScript, and in the first JavaScript it is recommended that you wrap the inline script code in an HTML annotation, which prevents browsers that do not support JavaScript from incorrectly dropping
One page reduction 10KB for a small site, is not what, but for large sites, the cumulative is a lot of traffic ... gzip compression is an effective and feasible approach, but requires Apache support (Apache has a common port solution with
Javascript----File Operations
First, the function realizes the core: FileSystemObject object
To implement the file manipulation function in JavaScript, the main thing is to rely on the FileSystemObject object.
Second, FileSystemObject
Javascript Engine working mechanism
JavaScript from definition to execution, JS engine in the implementation layer do a lot of initialization work, so before learning the JS engine working mechanism, we need to introduce a number of related
The substr () method extracts a specified number of characters from the start subscript in a string.Stringobject.substr (start,length); start must, length optional.
Start is the subscript for the starting position of the intercept and must be a
JavaScript code can be included anywhere in an HTML document. But there are also the best ways to include JavaScript in HTML files.
In the ... section.
In the ... section.
In the ... and ... sections.
Scripts and external files, then
The BOM, also known as the browser object model, provides a number of objects for accessing the browser's functionality, which is irrelevant to any web content;BOM lacks the specification, each browser provider according to own idea expands it, then
In the previous article, we gave an overview of the preliminary explanation, before writing this blog to write a few classic cases, given that those cases are more comprehensive, and gradually have this blog, so for learning and in-depth JavaScript
This article reviews the basic grammar in the ECMAScript specification, and good friends in English can read the official documents directly. JavaScript is essentially a Class C language, familiar with C language friends, can be very easy to read
Strict mode (Strict mode) is a new feature of ECMASCRIPT5. ECMAScript5 can be backwards compatible with ECMASCRIPT3, but if you use strict mode, which ECMAScript5 "not recommended" ECMASCRIPT3 syntax feature will be all in the system, if it appears
The following is a summary of the JS date function encyclopedia, for your reference
1. Get the current time
Copy Code code as follows:
var date=new date ();
2. Date-converted data of the year, month and day known:
Copy
ECMAScript can recognize two types of objects, one of which is called native object, which belongs to the language category, and is called host object, provided by the running environment, such as a Document object,
Dom node, etc.
Native objects is
This article is mainly about the use of JavaScript to format the string date to YYYY-MM-DD, the following words are not more, refer to the following code
function FormatDate (date) {
var d = new Date (date),
month = ' + (d.getmonth () + 1)
Project front-end page needs to be implemented, the page no one to operate into the countdown, the following is the front-end code implementation.
Set (Countdown function) switch
var _mouseactivelistener_flag = true;
Beforecount:
Here are some examples of direct communication between Flash and HTML files that use JavaScript, with each example having a brief step
This article discusses 3 basic Flash/javascript communication methods:
JavaScript to Flash
JavaScript Each statement ends with a semicolon, but because JavaScript has a semicolon automatic insertion rule, all the different programmers have different habits, some with a semicolon, and some without a semicolon, then whether to add a
This method cannot check whether the object's prototype chain has this property, which must be a member of the object itself.
The in operation checks whether the object is named property. You can also examine the object's prototype to determine
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.