Many front-end design developers in many companies are girls, and many of these girls have poor JavaScript skills. In front-end development, JavaScript skills are essential. So, if the front-end small MM is worrying about a JavaScript effect, you
Ext. MessageBox. confirm () A confirmation dialog box is displayed to replace the JavaScript standard confirm () method. There are two buttons: "yes" and "no". If you provide a callback function for it, the function will be called after the button
Js and css compression tool yuicompressor 2.46IntroductionHttp://developer.yahoo.com/yui/compressor/JS and css compression tools yuicompressorLatest Version: 2.4.2Run the need to install JDK first, official:
What I want to talk about today is how to write classes and static classes in Javascript. This is my usual method. You can also make it easier, or send comments to communicate with you.First, let's talk about the class. In a class, we have the
Worth notingWhen the input is Json type, var user = eval (result. d) is required );Use eval ("exception =" + result. responseText) when passing in a string );Copy codeThe Code is as follows:$. Ajax({Type: "POST ",ContentType: "application/json ",Url:
In JavaScript, data types are classified into integer and floating-point types. Here, the floating-point type does not have the same single-precision or double-precision expression. The declaration of all variables only needs to use var (which is
Copy codeThe Code is as follows:This. store. on ('beforeload', function (){Ext. apply (Ext. getCmp ("propTypeGrid"). store. baseParams, {parameter 1: '20140901', parameter 2: '20160901 '});}); However, parameters cannot be added in 3.0, so we found
1. isPrototypeOf IsPrototypeOf is used to determine whether the specified object object1 exists in the prototype chain of another object object2. If yes, true is returned; otherwise, false is returned.The format is as follows:Object1.isPrototypeOf
JQuery is like $ ("# txtName "). addClass ("err" ).css ("font-size", "12px "). select (). the focus (); method is fascinating. The implementation mechanism is chained call. Chained call is to call the method of an object and return it to the object.
For example:Copy codeThe Code is as follows: When parsing, the browser first loads the input tag and then the img tag.If you want to determine whether the img tag is fully loaded, you can add a script before and after the img tag, for
The condition is:In IE and Firefox 1. The "action" Field of the attribute is required;2. There is an "input" of type = "submit ".In Chrome and Safari The first entry is enough. (Note 1)Therefore, if you want to control the submission behavior (for
Speaking of js object-oriented, we have to mention prototype, the js built-in attribute (Note: prototype is not prototype here. js), which can dynamically add certain attributes to an object. What I want to do now is to make the code as public as
ReviewThe event object contains three pieces of information!The attributes and methods in the event object are mainly the mouse and keyboard information.1. Get the Event TypeEvent object property type2. Obtain the key codeEvent object property
It has been confusing why situ zhengmei still despised the for loop below,
For (var I = 0; I
// Loop code
}
After reading the following article, I finally understand TM...Language Level Loop
In JavaScript, we can use three loops: for (;), while (),
The above program was accidentally seen today. Share it with me! Original article address: Cross-domain-request-with-jquery, of course, there is also the Demo above, I directly changed it, the original address: DemoCopy codeThe Code is as follows:$ (
Perfect Method for judging whether iframe is loadedIE supports iframe onload events, but they are invisible and need to be registered through attachEvent.The second method is more perfect than the first method (using readystatechange), because the
Some people say that javascript is also object-oriented, but it is prototype based. Of course, this is only a conceptual difference. I don't want to discuss whether javascript is object-oriented, the key is to explain that although javascript
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