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"