JavaScript toLowerCase Method
The toLowerCase method is used to convert the (English) string to lowercase and returns the converted string. The syntax is as follows:
Copy Code code as follows:
Str_object.tolowercase ()
toLowerCase
1. A brief introduction to JavaScriptØ most of the JavaScript spoken in the Web or book refers to client JavaScript.Øjavascript is a lightweight, interpretive, object-oriented programming language.Øjavascript characteristics1 control the appearance
In writing work-in-progress JavaScript book, I spent a considerable amount of time on the JavaScript inheritance system, and studied various scenarios for simulating classical class inheritance in the process. In these technical projects, I most
These days in doing a drag-and-drop element of the additional function, is to align to the grid, is actually to determine the initial position of good elements, and then drag elements, each move a fixed distance. Allow elements to be aligned within
An important aspect of JavaScript events is that they have some relatively consistent features that can provide powerful functionality for development.The most convenient and powerful is the event object, they can help you handle mouse events and
Introduced
Enjoy meta mode (Flyweight), run the sharing technology to effectively support a large number of fine-grained objects, avoid a large number of the same content of the small class of overhead (such as memory), so that everyone share a
An array of definitions.
There are two ways to define an array:
1, var arr1 = []; Define an empty array
2, var arr2 = [1,2,3, "str1", "str2"]; Defines an array that has 5 elements.
3, var arr3 = new Array (3); Define an empty array
4, var arr4 =
jquery This write less do more frame, with a lot of will inevitably to native JS Yangaoshoudi.
Small dishes In fact do not want to write this blog, seemingly very elementary appearance, but see the network even the original JS event binding and
Some of the calculations and processing in browsers are much more expensive than others. For example, DOM operations require more memory and CPU time than non-dom interactions. Successive attempts to do too much DOM-related operations may cause the
Typically, an object in JavaScript is a pointer to prototype and a list of its own attributes. JavaScript uses the idea of write-time copying when creating objects.Only the constructor has the prototype attribute, and the prototype chain inheritance
Last Thursday after lunch, leader sent a JavaScript topic for us to do, our team has to do the front-end, have to do backstage, also have to sit mobile web, so everyone's understanding of the topic is different, and then in the QQ discussion group
Using the typeof operator on a value may return one of the following strings:"Undefined"--if this value is not defined"Boolean"--if this value is a Boolean value"String"--if this value is a string"Number"--if this is a numeric value"Object"--if this
Recently in learning Canvas drawing methods, recently had time to do a collation, as follows:
1. Basic usage
To use the element, you must first set its width and Height properties, specify the size of the area that can be drawn, and the content
Is there a capital letter in the password when the user encounters a page that needs to be entered with a password? Does the capital key (Caps Lock) open? Wouldn't it be better if you could give the user a hint?
The following example code gives the
Note: The Firebug console object is used many times in this article, please refer to
Firebug Console API。 For a more detailed description of Firebug, please
Bash here。
1. = = = Replace = = = =There are two different equality operators in
Copy Code code as follows:
/**
* Get Chinese and English characters
* @param {} str
* @return {}
*/
function LENGTHB (str) {
var p1 = new RegExp ('%u ... ', ' g ')
var P2 = new RegExp ('%. ', ' G ')
return Escape (str). replace (P1, ').
First of all, ie, this is the largest user base, if this part of the development does not come out, the basic can be said not to do. IE has the gradient filter, but compared to other browsers, the implementation is very weak, no multiple gradients
So the basic things should not be recorded, but, restudying ~ first from the data type
JS Six data types: number, String, object, Boolean, null, undefined
String: Single or double quotation marks, such as "string"
Number: What integer AH floating
No event, no script. Take a look at any Web page with JavaScript code: Almost every example has an event that triggers the script. The reason is very simple. JavaScript is adding internal activity to your page: the user does something and then the
You have to decide which of these two ways to write your JavaScript, and in order to help you make informed decisions about which is more appropriate for you, we will compare the pros and cons of these two methods.
One disadvantage of using
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