js 中 this,apply,call,bind 详解

JavaScript 中关于 this、apply、call、bind 的介绍文章已经有很多了,看的越多,越会一头雾水。下面从常见的应用场景来说明上述这些概念可能会容易理解一些。 this this 代表 函数 运行时的环境。注意是函数,是函数,还有就是 运行时 ! function hello(){ console.log(this) // window } hello() 复制代码...