To learn JavaScript well, you must understand several basic concepts: Prototype, executing, context, and closure.
Prototype
In JavaScript, prototype is usually used to implement oo. Here, we will not discuss too much about the Javascript oo
ArticleDirectory
Text encryption and decryption
Text encryption and decryption text encryption and decryption copy your text to the following input box, you can complete text encryption and decryption
Many things are easy to forget, so I chose to record them.
Firefox does not support the obj. innertext attribute.
The value displayed by obj. innertext alert () is undefined.
Firefox supports the innerhtml attribute but does not support
VaR textboxs = new array (); // input set of the text type
VaR radiolist = new object (); // input set of the radio type. Because radio is special, it requires a group of checks, so a hashtable is used here, use the radio name as the key to save
If (! Document. All ){
// Zzcv FF ie compatible script
/* Unresolved issues and handling of the script:
2. in IE, you can use () or [] to obtain the collection class object. In Firefox, you can only use [] to obtain the collection class
1. What is prototype?
The prototype attribute of the object in Javascript, which can return the reference of the Object Type prototype. This is a pretty straightforward explanation. To understand it, you must first correctly understand the
Today we will talk about Dom attributes.
We have already touched Dom attributes.
For example:
Nodename, nodetype ..... Today we will explain in detail.
1. nodename attribute: name of the node.If the node is an element node, the name of the
1. Create a node.
Createelement ():
VaR A = Document. createelement ("p ");
It creates an element node, so nodetype is equal to 1.
A. nodename will return P;
Note: The new element node created by the createelement () method will not be automatically
What is "clone "?
In the actual programming process, we often encounter this situation: there is an object A, which contains some valid values at a time point, in this case, you may need a new object B that is exactly the same as a, and any
If SESSION ("login") <> "888888" then' determines whether the session is valid
Response. Write ("session expired ")
End if
%>
untitled document
Http://www.jb51.net
Can I bring up a warning when the time is reached and click it to go to
Form: http://www.webreference.com/programming/javascript/mk/
Author: Mark Kahn
Developers have a large library of JavaScript code at their fingertips that they developed, their collegues developed, or that they 've pieced together from scripts all
Overview
Functions are the basis for modular program design. To compile complex Ajax applications, you must have a deeper understanding of functions. Functions in JavaScript are different from other languages. Each function is maintained and run as
51js
==================Reference Method on the same page:
1. Use id:
Link1.href
2. Use name:
Document. all. link1.href
3. Use sourseIndex:
Document. all (4). href // note that there are HTML, HEAD, TITLE, and BODY in front, so it is 4
4. Use a
The unique reader (defineGetter and defineSetter) in Mozilla and prototype can be added to Element and Event, so that the methods used in IE can also be applied in Mozilla, below are some common codes
For example
Obj. insertAdjacentHTML,
Copy codeThe Code is as follows: function IsValidYear (psYear)
{
Var sYear = new String (psYear );
If (psYear = null){Return false;}
If (isNaN (psYear) = true){Return false;}
If (sYear = ""){Return true;}
If (sYear. match (/[^ 0-9]/g )! =
From: JavaEye.com
Pay attention to the definition of object classes in JavaScript. Use function to define object classes. initialize objects using the new operator.Function Person (name, age ){This. name = name;This. age = age;This. toString =
Thanks to the regular expression provided by the waves. For the original post, see:
Http://www.iecn.net/bbs/view/106503.html
Because you want to replace a template, the variables in the template are named in the format of $ {MyName. When performing
I. function implementation core: FileSystemObject object
To implement file operations in javascript, FileSystemobject objects are primarily used.
Ii. FileSystemObject Programming
It is very easy to program with FileSystemObject object. Generally,
JavaScript: an in-depth understanding of functions in JavaScript. Javascript tutorial
Functions are the basis for modular program design. To compile complex Ajax applications, you must have a deeper understanding of functions. Functions in
JavaScript: Use the GetRows method of the RecordSet object in JS. Javascript tutorial
When writing an ASP program, VBScript is usually used. However, you can also use JScript instead of this option. However, when JScript is used as the ASP language,
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