Instance members and static members

Examples member 1. function: to write the function body this.xxx, this property xxx final new function when it is added to the instance attribute body

2. static member function: function .xxx This property is directly added to the function of the body, (the data type of the function is also an object)

<Script> 
    function the Person () { 
      the this II.A = ' A ' ; // instance members of 
      the this .B = ' B ' ; // Instance members 
    } 
    Person.c = ' C ' ; // static member 
    Person.prototype.d = ' D ' 
  </ Script>

 

Guess you like

Origin www.cnblogs.com/zhaodz/p/11596904.html