201505030956_ "JavaScript variable collation"

Source: Internet
Author: User

One.

Function.proptype.method=function (name func) {

This.proptype[name]=func;

return this;

};

Two. Syntax diagram

Three. Comments. Try to replace/**/with//

Four. Note Goto, native, package, supper, synchronized, transient, and with in JavaScript

Five. The storage of variables in JavaScript involves three parts,

The variable assignment operation for *javascript is performed at run time.

Six. JavaScript simple numeric type: number, String, Boolean, null, undefined, other types are objects, JavaScript objects are untyped;

Seven. Correct use of the prototype chain can reduce the time and memory of object initialization;

Eight. The object is passed by reference. The object will never be copied.

Nine. Minimize the use of global variables is: The global use of a unique variable; for example: Var callformeals_app={}; callformeals_app.mall={"Wuxi": "Salon", "Shanghai": "Jason"};

201505030956_ "JavaScript variable collation"

Contact Us

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

  • Sales Support

    1 on 1 presale consultation

  • After-Sales Support

    24/7 Technical Support 6 Free Tickets per Quarter Faster Response

  • Alibaba Cloud offers highly flexible support services tailored to meet your exact needs.