The SUP method returns the superscript string defined using the HTML SUP Tag property. The syntax is as follows:
Copy Code code as follows:
Str_object.sup ()
Tip: This method does not conform to the ECMA standard and is not
Closure this thing, say difficult also difficult, said not difficult also not difficult, below I to own understanding to say the closure
Explanation of closureFor functional languages, functions can save the internal data state. For a compiled
1.null and undefined
* Get a property from an object that has a value of undefined if the object and its prototype in the chain do not have the property.* A function that returns the value to its caller without an explicit return value is undefined.
Mobile of keyboard control layer
Please press ↑, ↓, ←, →,
What's the effect of a try?
Control key Settings:
Move Up:
Move Down:
Move Left:
Move right:
Each move
Px;
keyboard control layer Mobile please press , ↓, ←, →,
One, the external is global, internal is local variable.
Second, add var as local variable (within the method), without VAR as global variable (once used in the method)
Copy Code code as follows:
In the test method above, when
Join ([separator]) array elements are grouped into strings
ToString () represents an array as a string
Reverse () array inversion--change the original array itself
ValueOf () returns an array value
Copy Code code as follows:
CreateElement is the concept of establishing child nodes, which are child elements, in HTML with the application of the consortium DOM to the image model.
Copy Code code as follows:
Note: value is actually a character, if
Introduction to JavaScript
definition : JavaScript is a scripting language, requires a host file, and its host file is an HTML file.
JavaScript is a lightweight programming language.
JavaScript is a programming code that can be inserted into an
JavaScript introduction is too easy, resulting in almost everyone casually see can get started, 0 basic people learn a 35 days can declare oneself mastered JS. But really mastering JS is a very difficult thing. It is difficult to make progress if
JS is a total of 5 original values, 6 typeof can be judged, 9 native built-in constructors.
These 569, constitute the basis of the JS language.
5 Original values are: numbers, characters, Boolean, null,undefined
typeof can judge: number,
A summary of the method of array
Will change the original array
Push, Unshift method, return length. Added is worth the return length, the other returns that element
Pop,shift returns the element
Reverse returns the element
Splice
Each Javascript function can access a special variable-arguments within its scope. This variable contains a list of all the arguments passed to the function.The arguments object is not an array. Although syntactically it has the same place as an
First, what is the constructor
Constructors are common in some object-oriented languages, such as Java, C + +, and PHP. In JavaScript, a constructor is first a normal function that can be invoked using the new operator and generate a special type
Operator precedence in JavaScript is a set of rules. This rule controls the order in which operators are executed when evaluating an expression. Operations with higher precedence are performed Fuxian to lower-priority operators. For example,
The first and second sections of this series introduce JavaScript module prototypes and theoretical concepts, and today we describe how they can be used in combat.
I'm using a very popular library require.js.
One, why should use Require.js?At the
escape definition and usage
The escape () function encodes the string so that it can be read on all computers.
Parameters
Description
String
Necessary. The string to be escaped or encoded.
return value
A large string connection is best done by using arrays, putting each substring into an array element, and then performing a join () connection, which is significantly more efficient than + =.
Therefore, you can write a simple StringBuffer class
Note: The following content is based on the OnLoad event of GIF in IE, so all test ie only
Several pictures that need to be used
Let's look at a simple fact:
Copy Code code as follows:
Your IE should pop up a whole bunch
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