摘要: js静态方法 function foo(){} // 声明类 foo.method = function(){} // 方法体 使用:foo.method() js实例方法 function foo(){ // 声明类 this.method = function(){ // 方法体 } } 使用: 阅读全文
posted @ 2014-09-23 20:29 Solo社区 阅读(266) 评论(0) 推荐(0) 编辑