01 2019 档案

js构造函数内存在的闭包
摘要:function Func(x) { this.x = x; this.print=function() { console.info(this.x); (function (){ console.info(x); })(); }}var a = new Func(30);console.dir(a 阅读全文

posted @ 2019-01-13 11:52 WINSH 阅读(545) 评论(0) 推荐(0) 编辑

导航

点击右上角即可分享
微信分享提示