Node type NodeTypeHere are some important NodeType values:1: Elemental Element2: Attribute attr3: Textual text8: Note comments9: Document Documents
Nodename,nodevalue
Node relationship ChildNodes: Each node has a ChildNodes property, which holds a
Fit to read: Know nothing about JavaScript ~ one step away from mastery
Basics: HTML
That's what JavaScript is about. 1: basic knowledge
1 Creating script blocks
1:
2 Hide Script code
1:
Do not execute related code in browsers that do
The BOM for JavaScript
ECMAScript is the core of JavaScript, but if you want to use JavaScript on the web, then the BOM (Browser object model) is undoubtedly the real core. The BOM provides a number of objects that are used to access the
Some people told me that the second lesson is not clear, I do not know whether the writing is too general, not meticulous, or other, what is the problem, everyone to put forward, of course, I do not
is what JS master, just want to bring the fans in
In JavaScript, Void is an operator that specifies that you want to evaluate an expression but not return a value.
void operator usage format is as follows:
1. javascript:void (expression)
2. Javascript:void expression
Expression is an expression
Explore JavaScript The this pointer points to
The first thing you have to say is that this point is not certain when the function is defined, only when the function is executing to determine who it is pointing to, and actually this is ultimately
1. Document.form.item question
(1) Existing problems:
There are many Document.formName.item ("itemname") statements in existing code that cannot be run under MF
(2) Solution:
Switch to document.formname.elements["ElementName"]
(3) Other
See also 2
51js
=============
Reference methods within the same page:
1. Use ID:
Link1.href
2. Use name:
Document.all.link1.href
3, the use of Sourseindex:
document.all (4). href/note, the front also has HTML, head, title and body, so it is 4
4, use
Front.
In the previous article, we introduced the JavaScript animation simulation dragging effect article. However, in practical applications, it is often necessary to limit the range of elements to be dragged. By limiting the range and adding some
Front.
Scroll bars appear when element content overflows the element size range. But because the scroll bar in each browser performance is different, the compatibility is not good. Therefore, the simulation scroll bar is also a very common
The example in this article describes how JavaScript obtains server time. Share to everyone for your reference, specific as follows:
JavaScript is run on the client script, we generally use new Date () to get the current time, but get the client
Using Javascript parsing links (URLs) is a common requirement, and this article describes a very sound, Javascript -written link (URL) parsing class that can accurately capture a complete The contents of each part of the url , including
For ..... The in declaration is used to iterate through an array or an object's properties (a circular operation of a group or an object's properties).
JavaScript for ... In declaration
For ..... The in declaration is used to iterate over the
This article is an introduction to the considerations when using Exec for regular expression global matching in Javascript.
Let's take a look at common usage:
Copy Code code as follows:
Next, look at the bizarre events in
The template separates the data from the presentation, making the logic and effects of the presentation easier to maintain. Use JavaScript function objects to build a very simple template transformation engine in one step
Introduction to Templatesa
The browser handles HTML page rendering and JavaScript script execution in a single process, so when the browser encounters the
This load of multiple JS files, the browser will be downloaded after the implementation of JS code and
From array to object
var myarr = [' Red ', ' blue ', ' yellow ', ' purple '];
myarr;//["Red", "blue", "yellow", "purple"]
myarr[0];//"Red"
myarr[3];//"Purple"
Array everyone is familiar with it, we can understand that a key
In JavaScript, a single example pattern is one of the most basic and often used design patterns, and may inadvertently be used in a single case pattern.This article will start with the most basic theory, the basic concept and implementation of the
First, take a look at the method of selecting elements from an array slice ():Source:
click the button to extract the second And the third elements from the array.
try it
Test results:
Orange,lemon
We can use
The previous article explains the dynamic creation of nodes and the deletion of nodes, and this article explains how to do simple animations with setinterval and settimeout.
Grammar is window.settimeout (FN, delay), Window.setinterval (FN, delay)
FN
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.