摘要: this指向 this只有在面向对象的时候才有意义,虽然是每个函数都有this,这是因为所有的函数都是定义在window对象上的方法,而方法只有在调用的时候才有this,指向那个调用自己的对象。 function as(a,b){ a = 2; b = 3; console.log(this)//w 阅读全文
posted @ 2017-04-02 22:15 慕迪亚 阅读(120) 评论(0) 推荐(0) 编辑
你的浏览器不支持canvas