JavaScript is well known as a dynamic type, and the type conversion occurs in many cases by the weak type of the scripting language whose data type. These types of conversions are often implicit, which gives us a lot of trouble when using JS. And JS'
array additions and deletions1. Add a newYou can use the Concat method, which does not alter the original array, but instead creates a new arrayLet A = [0, 1, 2= A.concat ([3]) Console.log (A, b)2. Delete one itemSplice also does not satisfy the
The generic term "JavaScript", which is understood in the context of a Web browser, contains several very different elements.One is the core language (ECMAScript) and the other is a collection of Web APIs, including the DOM (Document Object
The solution to the Cross-origin JavaScript problem is already in the previous section.ArticleFor details, see http://blog.csdn.net/sfdev/archive/2009/02/13/3887006.aspx;
In addition to the three solutions mentioned in this article, Huang fangrong'
Using Google-hosted JavaScript libraries in projects
Author: chszs, reprinted with note.Author blog homepage: http://blog.csdn.net/chszs
Google provides many open-source JavaScript libraries, including jquery, dojo, mootools, prototype,
Introduction
In the previous chapter, we introduced the basic content of JavaScript and various aspects of DOM objects, including how to access node nodes. This chapter describes how to use Dom to operate elements and discuss browser event models.
For front-end users, they always need to deal with compatibility, CSS compatibility, and JS compatibility. Here I summarize the compatibility of getattribute () and setattribute () in different browsers and how to solve these problems:
1
When using JavaScript to process strings, we often use the replace method. This is a very simple method, which has never been ignored before, today, when I read an interesting small example of the Javascript language, I didn't quite understand it. I
Javascript variables are loose types. They can store any data types supported by JavaScript, and their variable types can be dynamically changed at runtime. See the example:
VaR n = 10; n = "Hello csser! "; N = {};
In the above example, first
Commonjs module specification
The modular specification of commonjs is described inModules/1.1.1Medium
Currently, the following packages are available:
Yabble, couchdb, narwhal(0.2 ),Wakanda,Teajs (formerly v8cgi ),Commonscript,Pinf JS
Use JavaScript HTML Dom to highlight specific words on the page by shawl. Qiu
Note:This is mainly used in the search results to highlight related words.
This function was mainly written a few days ago in the csdn community JS version of a
Use JavaScript to determine whether the browser has disabled the pop-up window, and prompt the website viewer in a friendly way on the webpage.
Pop-up Blocker or other software that shields pop-up window advertisements (such as Google Toolbar) will
This article introduces a javascript-based rest client framework. This is a lightweight framework. The javascript client mainly uses the XMLHTTPRequest object to perform get, put, post, and delete operations on the server through http to retrieve
The following things are not what I have created. They are the essence of some books I think. After learning about JavaScript, I feel that my understanding of JavaScript has been further improved, find out something that is also known as a trick or
Document directory
1. ecmascript version
2. What is ecmascript conformity?
3. ecmascript support in Web browsers
1. Why is Dom indispensable?
2. Various levels of DOM
3. Other dom
4. Dom support in Web browsers
See:
The core ecmascript
Document directory
1. Ensure no error after code Compression
2. Ensure that the code can be automatically formatted using the specific IDE
3. Use standard document annotations
4. Use standardized and meaningful variable names
5. Do not use
Download time
The Web browser downloads the JavaScript source code, that is, all the long variables and comments will be included. This and other factors increase the download time, which increases the total time of script running. The key factor to
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.