JavaScript Bold Method
The LastIndexOf method returns the bold string defined using the HTML b tag. The syntax is as follows:
Copy Code code as follows:
Str_object.bold ()
Tip: This method does not conform to the ECMA
JavaScript fromCharCode method
The fromCharCode method converts one or more Unicode values to (uppercase) strings and returns the string. The syntax is as follows:
Copy Code code as follows:
String.fromCharCode (NUM1, num2, ...)
Recently, in the learning Javascript,java as a domain chain contains global, record common global properties and methods, when it is the accumulation of knowledge, not listed all, if you need to see all the relevant JS API documentation.
Common
The label (label) in JavaScript is an identifier. A label can have the same name as a variable, which is a separate syntactic element (neither a variable nor a type), and its function is to identify the "labeled statement"
Label declarationA label
In most browsers, when an event handler is triggered, the class instance named event is passed into the processor as the first parameter. IE, which has always been dominant, has acted in its own way, saving the event instance to a global attribute
Original: JavaScript, We hardly new Ya--douglas Crockford.
http://yuiblog.com/blog/2006/11/13/javascript-we-hardly-new-ya/
Reference
JavaScript is a prototype based language, but it has a new operator that makes it look
Today we're talking about a Boolean type in a data type that returns True and false two literals, and it needs to be noted that the literal value is case-sensitive, meaning that all but the lowercase are just identifiers.
The following are mainly
(1, 2, 3);
return 3; Very curious, why return 3? What kind of mechanism is this? What is the effect of parentheses?
(1, 2, 3, alert) ("amazing!");
It's even more fun to call alert directly, which can be invoked by a global function.
The
SetAttribute (string name, String value): Adds a new property that specifies the name and value, or sets an existing property to the specified value.
1, Style problems
The class in setattribute ("Class", value) refers to changing the attribute of
The advent of JavaScript has been nearly more than 20 years, but the praise of this prediction is still divergent. Many people say that JavaScript is not an object-oriented language. But the type of JavaScript is very loose and there is no compiler.
Traditional way
Element.onclick = function (e) {
//...
};
1. Advantages of traditional binding
Very simple and stable to make sure it works in the same browser you use
When handling an event, this keyword refers to the
Brief introduction1. Type of reference (Reference type)A reference type is an intrinsic type in JavaScript. It is mainly as a reference, instead of a variable or function, of course, when the need for real value, but also through it to find the real
SetTimeout and setinterval have the same syntax. They all have two parameters, one is the code string that will be executed, and one is the time interval in milliseconds, and the code will be executed after that time period.
However, these two
Recently need to verify the legitimacy of the ID card, real-name verification is not expected, but the original validation rules too simple, but simply verified the length of the ID card, now the business needs to strengthen the identity card
About the animation in the webpage, we already can use some properties to make quickly in the CSS3, but sometimes for the compatibility of the browser we still need to use JS to make the animation of the webpage.
Use JS to do animation The most
From nine JavaScript gotchas, here are nine pitfalls that JavaScript can easily make mistakes. Although not a very sophisticated technical problem, but note that will make your programming easier, that is, the so-called making life easier. Some of
Introduced
This is one of the most intriguing features in JavaScript, and the first step in learning this is to understand that this is not a scope to point to a function or to a function. This is actually the binding that occurs when a function is
In this chapter, we will analyze the implementation of JavaScript inheritance in Prototypejs.Prototypejs is the earliest JavaScript class library, can be said to be the originator of JavaScript class library. The first JavaScript class library I
In this chapter, we will analyze John Resig, an implementation of JavaScript inheritance-simple JavaScript inheritance.John Resig a reputation as the founder of jquery. Is the author of Pro JavaScript techniques, and Resig will launch a book,
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