javascript[objects. Properties] Collection
Property
LANGUAGE Definition scripting language
SRC defines a URL to specify a file that ends with. js
Windows object
The top-level object for each HTML document.
Property
Frames[] An array of child frames.
Crap, look at the code less!
Staff id
Chinese name
English name
Department id
Identification Number
date of birth
email
YG1454
fsdafs
Big
2001-10-16
4234234
YG1445
sdds
Organizational Structure
2001-1-1
fsdafs
Use JavaScript to improve your framework
Two web designers: like to use frames (frame) and dislike. People who don't like to use frames always complain that the framework makes the pages more complex, increases the burden of downloading, and reduces
Simply put, the edit distance is the number of changes to one string modified into another. If the number of changes is smaller, we can simply assume that the relationship between the two strings is tighter. For example today is the day of the week
Describes the placeholder for the bottom scroll bar before calculating the scroll bar. In a PC browser, the scroll bar is the inner margin and content area of the placeholder element, while in mobile browsers, the scroll bar is not occupying the
There are some built-in controls alert,confirm in the browser, but these controls usually vary according to the browser vendor, and the visuals often don't meet the requirements of the UI designer. More importantly, the style of such built-in
For a JSON-formatted string, you need to be aware of the parentheses when you use eval to convert a string to a JSON object. As shown below:
The results of this code are as follows:
The results of this code are as follows:
Figure 1:
1. String to Array
The string in JS and the same in Java, are immutable constants. The early ECMAScript standard resolves string to an immutable array of characters, supporting access such as Str[index]. Firefox still supports it until today, but
First type:
window.location.href= ' http://www.111cn.net/';
JS Code
The code is as follows
Copy Code
Second: Skip to previous history
Window.history.back (-1);
JS Code
The code is as follows
Method:
1.substring (Str,end)
STR is required to be entered and must be positive;
End is optional and must be positive;
by literal means, Str is the starting position of the interception, and the first character position of the string is 0;end
JS object go to jquery object
The code is as follows
Copy Code
Joan Taiwan blog JS and jquery objects to each otherJS Get Objectvar obj = document.getElementById (' id ');Convert a JS object to a jquery objectvar $obj = $
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