/** appends the string to the end of the string **/string.prototype.append = function (str) {return this.concat (str);} /** Delete the character at the specified index, invalid index will not remove any characters **/string.prototype.deletecharat =
Output statement
Grammatical composition
Case sensitive;
The first character must be a letter, an underscore, or a dollar sign ($)
You cannot use keywords, reserved words, true, false, and NULL as identifiers.
Variables
You have to keep your heart, more than to keep everything, because the effect of life, is the heart of the issue. ———— o (∩_∩) o ...... O (∩_∩) o ... Teacher because of something afternoon did not come to class, today only to summarize the knowledge
Common error One: undefined variableAbc=23; var abc=23;Without Var, you can implicitly create a new global variable, ABC, and strictly define variables that should use the var keyword.Common error Two: case-sensitivevar myname= "Jim"; If (myName= = "
A queue is a linear table that allows only one end of an insert operation and another for a delete operation, and the queue is a first in, out (FIRST-IN-FIRST-OUT,FIFO) data structure Queues are very frequent in program programming because
Nan in JavaScript means not a numberThe isNaN function method in JavaScript is to return a Boolean value indicating whether the provided value is a reserved value NaN (not a number).How to use:IsNaN (NumValue)The mandatory option NumValue parameter
1. Event SourceAny element can be used as the source of the event2. EventsMouse classClick//Dbclick//Double-clickContextMenu//Right-click menuMouseOver//Move inMouseout//Move outMouseDown//PressMouseUp//Bounce upMouseMove//MobileSelected//select
First, describeWe publish the state in space, and when we enter a character, the number of remaining input characters is reduced by one until the number of characters entered reaches the maximum number of previous sets, as shown in the
Turn from: http://www.cnblogs.com/dtdxrk/p/3551454.html The event delegate used in JavaScriptMultiple events can be added to an elementvar addHandler = function (element,type,handler) { if (element.addeventlistener) {
You can resolve the $ symbol conflict with other plugins by wrapping the function inside the red font. (Function ($, window, document) {}) JQuery call resolves the syntax for conflicts with other JavaScript libraries
CommonJS, defines a specification for a synchronous load script. For the browser side, because the JS script is at the far end, it is possible to block threads in a synchronous way for long periods of time. Therefore, the browser side of the JS
1. Concept of closuresClosures are functions that can read other functions ' internal variables.Because in the JavaScript language, only sub-functions inside the function can read local variables, it is possible to simply interpret the closure as "a
Compile your own json parsing tool 2
For a while, this is the second article of my json tool. It has been a while before the first article "write your own json parsing tool 1. There are many reasons for this period. I am lazy, busy with other jobs,
Details about js callback functions and js callback Functions
Now native apps and Web apps are mainstream. That is to say, various browser-based web App frameworks will become increasingly popular, and JavaScript will become more and more promising.
JQuery: reset selector usage example, jquery Selector
This document describes the reset selector usage in jQuery. Share it with you for your reference. The specific analysis is as follows:
This selector can select all reset buttons.
Syntax structure:
In jQuery: Example of enabled selector usage, jquery Selector
This example describes the enabled selector usage in jQuery. Share it with you for your reference. The specific analysis is as follows:
This selector can select all available
In jQuery: disabled selector usage example, jquery Selector
This document describes the usage of the disabled selector in jQuery. Share it with you for your reference. The specific analysis is as follows:
This selector can select all disabled form
String, Array, and stringarray in javascript
Simply put, string is a character (string )...Array is an array... it can contain numbers, characters, and a series of stuff !!!
Previous example:
Copy codeThe Code is as follows:Var str = "liuzhanqi
Detailed support for Unicode character sets in JavaScript, including javascriptunicode
Last month, I shared a detailed description of the Unicode Character Set and the support of the JavaScript language. The following is the lecture for this sharing.
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.