《mastering-javascripts-this》学习笔记
Javascript中this关键字的作用范围详解day01函数中直接出现的this,指代global或者windowfunction doStuff(){ console.log(this) }doStuff();day02-1对象设置中的this,指代当前的对象var myObj = { function doStuff(){ console.log(this) }
原创
2016-02-01 23:53:13 ·
288 阅读 ·
0 评论