你不知道的this

1 "use strict"
2 function fn(a,b){
3     console.log(this)
4 }
5 fn(1, 2)
6 //等价于
7 fn.call(undefined, 1, 2)
8 fn.apply(undefined, [1, 2])
posted @ 2018-03-09 09:25  啊董在路上  阅读(77)  评论(0编辑  收藏  举报