After learning about the related updates of JavaScript1.7, we will continue to pay attention to the new features of JavaScript1.8. In the JavaScript series of feature articles brought about by W3CGroup, JavaScript1.8 has fewer updates! JavaScript 1.8
Currently object-oriented is popular, and JavaScript must catch up. javaScript is a thorough OO language, but I think it is inconvenient for JavaScript to implement object-oriented programs. at least every programmer who tries to use JavaScriptOO
Writing scripts compatible with IE and FireFox is annoying. Today I 've experienced it again.
I. formal expressionsTry to use the following expression to extract the content after the brackets "]" and call the following code in IE normally. FireFox
Use the drop-down menu implemented by css + js. Use getElementsByTagName to obtain ul and hide the display.
JavaScript drop-down menu function displaySubMenu (li) {var subMenu = li. getElementsByTagName ("ul") [0]; subMenu. style. display =
Some websites only have client js verification. In this way, some hachers can be used to test the registration function of some websites. Some websites only have client verification, in order to achieve client verification, I first determine whether
Although the history of using lengthy and annoying code blocks in JavaScript to mark specific browsers has ended, however, it is necessary to occasionally use some simple code blocks and object detection to ensure that some code works normally on
The function of JavaScript to convert the numeric amount to the Chinese capital amount.
The Code is as follows:
Function convertCurrency (currencyDigits ){// Constants:Var MAXIMUM_NUMBER = 99999999999.99;// Predefine the radix characters and
A summary of DOM node attribute operation methods. Attribute:
1. nodeName
The node name, which is equivalent to tagName. The attribute node returns the attribute name, and the text node returns the # text. NodeName, which is read-only.
2.
Prototype was used that day. javascript is so confused when you open it and check a few lines. The reason is that you are not very familiar with js object-oriented methods, So Baidu + google finally made a small gain, write this to commemorate ^_^.
When AJAX is used, JavaScript is often used to operate the DOM. When a data list is involved, many tables are used. Here, a group function set is written to operate tables. Of course, there are still many shortcomings, but some simple operations are
ExtJS is composed of a series of class libraries. Once the page has successfully loaded the ExtJS library, we can use javascript to call ExtJS classes and controls on the page to implement the required functions. The ExtJS class library consists of
Jscheckbox tips and instance code can be viewed. Function selectAll () // select all
{
Var objs = document. getElementsByName ('twid ');
Var I;
For (I = 0; I {
If (objs [I]. type = "checkbox ")
{
Objs [I]. checked = true;
}
}
}
Function unselect () /
We all know that the jQUery object has an element packaging set of an array of classes, which has the length attribute like an array in js. Therefore, we call this an array of classes, next we will summarize how to operate the class array in this
Recently I am working on online workbooks. Here are some of the knowledge and skills I have used. The table. rows set contains cell objects.
Cell. innerHTML = "123"
In innerHTML of table, it is 123
Cell. innerHTML = "123"
In innerHTML of table,
Currently, the methods for implementing the OOP mode using javascript on the network are basically prototype. The general sample code is as follows:
The Code is as follows:
The Code is as follows:
Function (){This. v1 = 10;}A. prototype. print =
I sorted out some differences between IE and FF. You are welcome to add the differences between js and css in IE and FireFox (FF ).
Css:
1.
In the ul tag, FF has a padding value, but there is no margin value. In IE, the opposite is true.
Solution:
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