$ Is a type of method defined by prototype.
$ ("ID") is the element with the page ID as "ID ".$ F ("ID") returns the value of the element whose page ID is "ID". This is read-only and cannot be written.
1. var STR = Window. showmodaldialog (URL,
for the singleton mode in Javascript, the benefits of Singleton mode will not be introduced, but the singleton Writing of JavaScript is just written!
JS Singleton mode you are? (Singleton) are you? (Normal)
RunCode
Offsetparent directly affects the upper-level element of the element position, while the upper-level element in the Dom is irrelevant to the position display.For example:
Code highlighting produced by Actipro CodeHighlighter
The last time I first read Fex, I said that JavaScript does not have a good development tool (IDE), which makes me feel inconvenient. Especially after seeing the smart prompts In Flex, I feel that DW and editplus have little support for JS
The usage method summarized by myself .... Mark it!
1. Loop binding
No Use:
Code highlighting produced by Actipro CodeHighlighter (freeware)http://www.CodeHighlighter.com/-->1 var lists = document. getElementsByTagName ('lil ');
2 for (var I = 0; I 3
Shift: Delete the first entry of the original array and return the value of the deleted element. If the array is empty, return undefined var a = [1, 2, 3, 4, 5]; var B =. shift (); // a: [2, 3, 4, 5] B: 1 unshift: add the parameter to the beginning
1. Place it between and in html, or between and ;
For example, "Hello!" is displayed on the webpage !".
2. Directly merge rows at the zookeeper address
You can also enter JavaScript statements in the address bar of the browser, which can be
// Generate a wscript. Shell object that can operate the registry and execute command lines.
VaR OBJ = new activexobject ("wscript. Shell ");
// Read the value of testvalue from the explorer table entry
VaR testvalue = obj. regread
VaR tools = {
Browserinfo: function (){
VaR sys = {};
VaR UA = navigator. useragent. tolowercase ();
VaR S;
(S = UA. Match (/MSIE ([\ D.] + )/))? SYS. Ie = s [1]:
(S = UA. Match (/Firefox \/([\ D.] + )/))? SYS. Firefox = s [1]:
(S = UA. Match
From: http://www.cnblogs.com/charles001/articles/555363.htmlUsing activexobject in JavaScript to create FileSystemObject operation file I. function implementation core: FileSystemObject object
To implement file operations in Javascript,
We all know the role of the setTimeput () function in javascript. It is generally used to handle some continuous tasks. Let's look at an example first:
Maybe many people think the result is: 2 1, but the result is: 1 2. Why? When the delay
If you accidentally see it on digg, you can see the effect by performing the following steps:
If you open a website, you must have images on the webpage. Otherwise, it will not work. After the page is opened, clear the address in the address bar,
XMLDOM can well process XML documents, but there are considerable differences between browsers such as IE and Firefox. This kind of comprehensive processing method makes it compatible with various browsers
This class is based on xml dom and only
Anonymous functions and function closures in JavaScript
Anonymous Functions
Functions are the most flexible objects in JavaScript. Here we will only explain the usage of anonymous functions. Anonymous function: A function without a function name.
1.
SetJquery pluginCore animation functions are written in native JS, and there are very few codes. To make it easier for netizens to learn, each function has a very detailed annotation, with a total of 10 demos, note 1 of this JavaScript study
Document directory
3. Processing of code blocks and js files
4. The repeated definition function will overwrite the previous definition.
7. Callback Function
Summary of the execution sequence of JavaScript programs
A good star is not as bad as
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.