摘要:
// 闭包函数 实现方法1 function test(r){ this.r=r } test.pi=3.14 test.prototype.area=function(){ return test.pi * this.r * this.r } // 闭包函数 实现方法2 var test2=function(){ var obj=new Object(); ... 阅读全文
posted @ 2018-12-02 14:44
飞翔的cloud
阅读(1856)
评论(0)
推荐(0)

浙公网安备 33010602011771号