However, prototype is used in the script. in the process of js, we found that some methods are rarely used, but some methods seem to be classic. The script library is constantly increasing... continue to get started with JS and learn about Array
1. ArrayIndexOf (Object o): Number MethodRemove (Object o): Array Method2. DateJavascript is not convenient for date and time operations, but Ext basically adds a lot of extensions here. Important:Add (String interval, Number value): Date
1. convert a number into a String and apply "" + 1. Although it looks ugly, the efficiency is actually the highest. In terms of performance: ("" +)> String ()>. toString ()> new String (): internal operations that can be used during compilation are
Recently, when using the Dialog control of jQuery UI, we found that if a form is placed in this control, all forms cannot be submitted normally, as shown below:1. The submit button is invalid. No response is returned after you click the button.2.
Back then, although jQuery has brought more and more front-end technologies to be learned (I just happened to have a basic jQuery tutorial in the school library (II) and started to learn the front-end technology in depth ), jQuery's blog posts are
The following is the js Code (it is not elegant when binding objects. I hope you can give me some advice !)Copy codeThe Code is as follows:Function validator (obj, option) {// verification objectVar self = this;If (! (Self instanceof validator
First, there is a We bind the following events to it:Copy codeThe Code is as follows:Test. onkeydown = function (){Return false;}Test. onkeyup = function (){Return false;}Test. onkeypress = function (){Return false;} We comment out two events
Javascript braces have four meanings.Semantic 1: Organizes compound statements, which is the most commonCopy codeThe Code is as follows:If (condition ){//...} Else {//...}For (){//...} Semantics 2: Object Direct Volume DeclarationCopy codeThe Code
Generally, the basic attributes of a jqGrid are commonly used.Copy codeThe Code is as follows:$ ("# Id"). jqGrid ({Url :"",Datatype: "local ",PostData: {strJson: Data },Mtype: "post ",Height: 45,Width: 450,RowNum: rum, // number of records per
Because there are not many articles about this framework on the Internet, and it does not support Chinese well. The manuals and other articles are in English. Although there are not many articles, however, some new users may not have time and energy
Chinese character sorting,Hybrid sorting,Data size sorting,Sort file types (suffix names)Date and time sorting,Price sorting,Sort Chinese mixed numbers;Usage: new tableListSort (arguments, arguments) after the document is loaded ).Two parameters are
CDATA is the keyword used in the XML document to tell the browser that this part of content does not need to be parsed and is used by other programs, such as JAVASCRIPT.PCDATA is used in XML constraints. For example, a DTD-type constraint document
Copy codeThe Code is as follows:$ ('# DialogDiv'). dialog ({Hide: true, // click Close to hide. If this option is not added, an error occurs when the pop-up window is closed.AutoOpen: false,Height: 380,Width: 800,Modal: true, // masked layer (the
It is actually a magic lamp effect. Considering its ease of use, it is encapsulated into a plug-in.Plug-in features1. Custom parameter height;2. Repeated calls and no impact;3. The plug-in file is small. After compression, the file size is only 1.04
JavaScript parsing reads XML files, mainly load and parse XML files, and then you can test the content of the parsed XML file and print the output.Online Demo: http://demo.jb51.net/js/2012/readxml/Note: during the test, you need to test on the
I. CausePrototype 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
On pages with non-English character sets, if Ajax is used for data interaction, you must ensure the unified encoding of the front and back ends of the data. Otherwise, garbled characters may easily occur!When the backend is an ASP program, you can
Not to mention whether the browser's built-in HTTP plug-in supports binary data streams, JavaScript itself has no binary processing capability. Smart readers may want to say that VBScript can be used. Yes, because VBScript, IE, and ActiveX are
There are two types of situations:1. Access between subdomains based on the same parent domain. For details, see taobao.com, jipiao.taobao.com, and promotion.taobao.com. They have the same parent domain taobao.com.2. Access between pages based on
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