摘要: JS中的call、apply、bind都是用来改变函数中this指向的 alert出来的this.name 会显示undefined console.log显示出来的this.name为1 问题来了,函数里边的函数的this不是外层函数的this,而是window。 一般我们解决这个问题会用 var 阅读全文
posted @ 2018-03-29 10:46 光何 阅读(203) 评论(0) 推荐(0) 编辑