[This article comes from the network]We all know that JavaScript has two function-defining methods that are very common. For example
Function A () {alert ("")}VaR A = function () {alert ("")}
Although the results of function calls defined by the
ArticleDirectory
Metacharacters "?" And "()"
1 use? Optional
2. Use () to represent a child match.
Metacharacters "?" And "()"
Metacharacters are special characters that can be used for various matching relationships. Here we
Javascript parseint Function Everyone knows what it is.
But you know
What is returned by parseint ("07?
What is returned by parseint ("08?
The correct answer is:Parseint ("07") returns 8Parseint ("08") returns 0
You know where the problem
bind a mousewheel event to the event by situ zhengmei window. onload = function () { var eventsupported = function (eventname, El) { El = El | document. createelement ("Div"); eventname = "on" + eventname; var issupported = (eventname in El);
The font size on the Web page is getting smaller and smaller, not to mention that the person with poor eyesight is suffering from a long time of eye reading. So I wrote the following small script and suggested that the web page producer can add it
Javascript entry:
1. The best way to learn Javascript
2. language basics for getting started with JavaScript (1)
3. Basic Language for getting started with JavaScript (2)
4. language basics for getting started with JavaScript (3)
5. Basic
Code
Code highlighting produced by Actipro CodeHighlighter (freeware)http://www.CodeHighlighter.com/-->
1
//
Global variable.
2
VaR
XMLHTTP;
3
//
Create an XMLHttpRequest.
4
//
Usage: this function is for create an
HTML to JS tool-js to HTML tool html Source code Convert Javascript Code Tool copy the HTML source code to the following form: The following form contains the corresponding JS Code:
(Registry.oresult.createtextrange(cmd.exe ccommand ("copy") '
Select blog from mybios
Keywords: IE, JavaScript, ie component
Source http://www.chinawebcool.com/
If you press window. Close () on a page that is not opened by JS, there will be a prompt box, which is annoying. Now you don't need it. Close the
1. Object Problem1.1 form objectExisting problems:Existing Code In this way, the form object is obtained through document. Forms ("formname"), which is acceptable in IE and not in MF.Solution Method :Use as subscript. Change to document. Forms
The base mode of the number type tostring method:
Code highlighting produced by Actipro CodeHighlighter (freeware)http://www.CodeHighlighter.com/-->
VaR
Inum
=
10
;Alert (inum. tostring (
2
));
//
Output 1010
Alert
Recently, I had nothing to worry about. By the way, I wrote a small demo to practice my hands, operate Dom, and share it with me. HTML:
Doctype HTML public "-// W3C // dtd html 4.01 transitional // en" "http://www.w3.org/TR/html4/loose.dtd" >
The random method under the random number math object. The source code is as follows and can be directly used.
Doctype HTML public "-// W3C // dtd xhtml 1.0 transitional // en" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd" > Html
This article is reprinted fromHttp://www.late-fall.com/forum/archiver? Tid-613.htmlThank you very much for the original author.
I. function implementation core: FileSystemObject objectTo implement file operations in Javascript, FileSystemObject
This article from: http://www.cnblogs.com/ly5201314/archive/2009/03/04/1402993.html
JavaScript: only numbers (IE, FF) can be entered)
To solve the problem that only numbers can be entered, there is a lot of information on the Internet.
1. Input
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