We know that JavaScript is constructed through statements.CodeThe basic form of this organizational structure is "code blocks", and the syntax Effect of code blocks is information hiding.
In general, information hiding refers to the visibility of
1. Javascript numeric type
Javascript has the following sentence: javascript only has a single number type.
In my opinion, this sentence is not accurate. It should be said that JavaScript only has a single data type when declaring it. Or, All
I. Basics
1. Javascript Study Notes 1 -- Data Type
2. Javascript Study Notes 2 -- Functions
3. Javascript study Note 3 -- Scope
4. Javascript Study Notes 4 -- eval function
5. Javascript study notes 5-class and Object
6. Javascript Study
In JavaScript, there are only five simple types: NULL, undefined, Boolean, string, and number. A complex type: object.
CodeThere is only one type of function.
Undefined: Undefined. We can also call it nonexistent. typeof (undefined) = undefined.
In JavaScript, function is the first type of JavaScript. When we write down a function, we actually create a function-type entity.
Just as we can write in this form:
FunctionHello () {alert ("Hello");} Hello ();VaRHello =Function() {Alert
Method 1:
This method is successfully tested in IE7. Html > Head > Meta HTTP-equiv = "Content-Type" Content = "Text/html; charset = gb2312" > Title > Close the window without mentioning Title > Head > Body >
(Event processing) use it, followed by other usage of this. Let's take a look at what this in the dosomething () function actually points to (refer? Function dosomething () {This. style. Color = '# cc0000';} This of JavaScript always points to the
// Check whether all numbers are composed of function isdigit (s) {var patrn =/^ [0-9] {} $/; If (! Patrn.exe C (s) return false return true} // check the logon name. You can enter only 5-20 names starting with a letter, including numbers, "_", and "
Indow. event object difference IE: window. event objectFF: There is no window. event object. You can pass the event object to the function parameters. For example, onmousemove = domousemove (Event) Take the current coordinates of the mouse IE: event.
function getbrowserversion () {
var browser ={};
var useragent = navigator. useragent. tolowercase ();
VaRS;
(S = useragent. Match (/MSIE ([\ D.] + )/))
? Browser. Ie = s [1]
: (S = useragent. Match (/Firefox \/([\
I. Method of type conversion and precautions: 1. Convert to boolean: ( 1 ) Using two non-operations (!) : !! 5 ==> true ( 2 ) Use a Boolean constructor: New Boolean (5) ==> true Convert value to boolean type False : 0 , + 0 , -0
The format is as follows: Varoeditor = fckeditorapi. getinstance ('content ');Varcontent = oeditor. getxhtml (true ); **************************************** ********* Using JavaScript to retrieve and set the FCKeditor value is also very easy,
JavascriptProgramming LanguageThe primary objective is to provide a Page scripting language for Netscape Navigator. It is still widely regarded as a subset of Java, but this is not the case. It is a syntax similarC LanguageIt also supports the
When we open a webpage, the browser will first create a window, which is the window object I know, that is, the global variable attached to the entire JavaScript operation.
To load a webpage document, you need to create a document object in the
I cannot remember the specific things. One day after work, I heard two colleagues talking about the incident.
Here is a simple example:
InputType= "Button"Runat= "Server"Value= "Click me"ID= "Buttontest"/>
There are two methods to add
First, let's continue with the aboveCodeTo extend this Code:
Script Type = "Text/JavaScript"> VaR Person = Function (Name, age ){ This . Name = Name; This . Age = age; This . Introduce = Function () {Alert ( "My name is" + This . Name +".
The prototype of JavaScript has been discussed in this article. For beginners of JavaScript, prototype is a very advanced topic, but it is not all about it.
I cannot explain it all. It means that it is easy to understand prototype. However, it is
JavaScript Object: an object is only a special data type and has a series of attributes and methods. General example:
A person is an object. Properties are values related to objects. A person's attributes include his/her name, height, weight, age,
JavaScript uses "Object-Oriented Programming" or "Object-Oriented Programming. The so-called "Object-Oriented Programming" refers to dividing the scope of JavaScript into large and small objects. objects are still divided into objects until they are
I have provided too little information on the Internet. I have studied it for a day or two and provided an example for your reference!
interaction between Flash and 3D Information
& Lt; td width = "369" align = "center" & gt;
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