摘要: 静态方法,通过function的函数名直接调用对象方法,通过function的实例化对象调用原型方法,通过对象原型复制实例化对象所得的方法,它不覆盖原有对象同名方法function ClassName1(parameter,...){ this.myMethod1=functon(){...}}function ClassName2(parameter,...){ this.myMethod1=function(){...} this.myMethod2=function(){...}}ClassName1.classMethod=function(){...}ClassName1.class 阅读全文
posted @ 2011-11-29 22:50 Yu 阅读(1062) 评论(0) 推荐(1) 编辑