I. Functions
Definition:
Function Square (x) {return x * x}
Ii. object,Set of named Data
1. Create
VaR o = new object (); var now = new date (); var pattern = new Regexp ("\ sjava \ s", "I ");
2. Call attributes
VaR poit = new object ()
Null
Is a javascript keyword
Is an object type, but is often divided into a separate type
No value
Undefined
It also indicates that there is no value, but it is a deeper level, or a system level.
It is not a type, it is a pre-
Static variable (static variable ?) :
The feature is that you can directly access it through the function name, or access it through the object instance and share it with all instances. modifications to it will affect all instances, similar to
Problem Extraction: The main page a.html is in the domain www.aaa.com. use ifameto embed B .html in the domain www.bbb.com. Now let B .html go into some operations and call the JS function onexcute in a.html. If you use "window. Parent. onexcute ();"
Recently, as a company's business system, the company requires that it be as close as possible to C/S, that is, like C/S. Click the text box to bring up the relevant content of this project, select input.I used the pop-up window. In the subwindow,
Main Character: javascript obfuscator v4.0
Function: JavaScript code compression and obfuscation
Comment: javascript obfuscator v4.0Than JS minAnd Yui CompressorThe compression ratio is high, and the obfuscation effect is better. You can easily
The previous article mainly explains how to call Java functions in Js.
Address: http://blog.csdn.net/andyhuabing/article/details/7590481
This article uses JS and Java to call each other to solve the relationship between each other.
First, describe
If you are using Microsoft IE 5 or later, you can use the behavior/html-component "WebService" to access a web service. the "WebService" behavior communicates with Web Services over HTTP using Simple Object Access Protocol (SOAP ).
To use the
Today, I am arguing with a colleague about the thread mechanism in the middle of javascripe. He argues that JavaScript has a thread, even if the Event Callback In The Middle Of Javascript is the implementation of the thread, I personally think there
This page is cool. Small windows move above the home page, you can minimize, restore, close these small windows, or drag them to any location on the home page. The sample interface is as follows:
For detailed usage, see the complete page code below.
Modules and namespaces in JavaScript are not differentiated.Each defined function is an attribute of a global object. The most important rule that JavaScript code module must follow is to avoid defining global variables. Because, when defining a
Use JavaScript to create subtitles
Http://www.sina.com.cn SCID Wang Weifu
Subtitle activity is one of the frequently used components in a webpage. It makes the whole webpage more dynamic and angry. Currently, more and more active subtitles are
It is easy to use timer in Javascript,
Function Foo (){}
Setinterval ("Foo ()", 1000 );
If OO technology is used,
// ConstructorFunction myobj{Function Foo (){Alert (this. data );}
This. Timer = Foo;This. Data = "hello ";
Setinterval ("This. Timer (
Blankyao recently asked me how to learn Javascript. He felt that after understanding the Javascript syntax, he did not know how to learn JavaScript.
In fact, I am also a javascript dish. I recently encountered many JavaScript problems during
The concept of anonymous functions may not be unfamiliar to everyone, but I believe the following content will open up some new ideas.
We know that the function can be defined in two ways:
1 function fn1 () {alert ('fn1 works ');}
2 var FN2 =
Events is the core of every JavaScript program. What is event processing, what problems it has, and how to write cross-browser code, I will give an overview in this chapter. I will also provide some excellent articles about the details of the event
1. Assertions
The core of unit testing is assertion. The so-called assertions are an expectation of the program designer for the system to reach the state. JavaScript does not provide assertions, but we can design this method by
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.