The latest version of jquery, Version 1.3.2, is used in recent projects. It is found that this version does not support radio input in IE8 well:
The Code is as follows:
Var _ val = $ ("input [name = 'input1'] [checked]"). val ();
The result shows
In IE, you can also determine methods in onreadystatechange events. Next, other methods:
1. You can also judge in the onreadystatechange event in IE.
Http://www.thefutureoftheweb.com/blog/adddomloadevent
Here, Jesse Skinner writes an independent
Jquery combines form elements in json format and implements asp.net deserialization code. For details, refer to the following description. Author: Yan Shiwei Email: ikmb@163.com reprinted author
Note: 1. js combines the name and value of the form
We often use window. onload to process pages. When page loading is complete, we will do something. However, this window. onload means that all pages are loaded, and even images are included. What we often need is that the document DOM is loaded!
The following are functions for string encoding conversion. You can choose to use them as needed.
Escape () method:
The specified string is encoded using the ISO Latin character set. All space characters, punctuation marks, special characters, and
Recently, you need to paste the excel Data in the browser. At the beginning, you need to find the method to obtain the Clipboard data. However, on the browser side, JS fetch is restricted by security. The other method is to use flash, which can
Javascript writing method 2. Prototype
The Code is as follows:
/*** Person class: defines a Person with a property name and a getName method.*/Function Person (){}Person. prototype. name = "jack ";Person. prototype. getName = function ()
The latest version of mootools. js is 1.2.3, Which is 1.2.0. Mootool is designed as a very compact, modular, and object-oriented js library. The Class is used for writing classes in mootool.
10. Writing Methods of mootools. js
The latest version of
This article will analyze the writing methods of popular js libraries. Although the writing methods of various databases are strange, they still cannot escape the essence-using constructors and prototypes to assemble classes. 6. Writing Method of
Javascriptrefreshpage, page refresh implementation code. How to refresh the page with Javascript:
The Code is as follows:
1 history. go (0)2 location. reload ()3 location = location4 location. assign (location)5 document.exe cCommand ('refresh ')6
The following code reads the default path of mediapalyer. After the operation, confirm that the program has no security issues and you can test it with confidence.
New Document function readRegedit () {var obj = new ActiveXObject
Extcore3.0 and Ext are used here. extend is used to define a class (of course it is more used to extend a class). Ext uses Ext to define various controls in the framework, such as Panel and MessageBox. extend method. Here we only use it to define
This pop-up dialog box or information display box is now popular on many websites, and they want to add this pop-up element to their projects. JQuery can be used to achieve this effect without great efforts. Record it to my Blog and share it with
You can use a browser to create a file on a visitor's hard disk. You can use a browser to create a file on the visitor's hard disk. This is because I tried it, you can COPY the following code to an HTML file and run it again!
The Code is as
In javascript, you do not need to use newObject (). You should use. You do not need to use new Array () or [];
Do not use new Number, new String, or new Boolean.
Do not use new Function to create a Function
For example, if you want to write
I learned how to use GTGrid in the previous section. Recently I have made a CRUD Demo for Extjs, including Extjs and GTGrid, Which is rough and helpful.
Some source code:
The Code is as follows:
User Management Homepage
Today, I uploaded an attachment image. It was very troublesome to write a test. Later, I found a clever method as follows:
The Code is as follows:
Function checkAttachment (){Alert ("here ");Var attachmentArray = document. getElementsByTagName
This is a very good code for continuous viewing. You can run it and check the effect.
0 & TmpInt 0 & TmpInt 0 & TmpInt 0 & TmpInt "; for (j = 0; j "; for (I = 0; I " ;}else {TmpInt --; matrix [I] [j] = 1 + Math. floor (PicMa X * Math. random ();
The event object method is compatible with multiple browsers and supports both ie and ff writing.
The Code is as follows:
Function getEvent () {// compatible with both ie and ffIf (document. all) return window. event;Func = getEvent.
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