摘要:
1 function foo (...args) { return args.reduce(function (previousValue, currentValue) { // console.log(previousValue, currentValue) return previousValu 阅读全文
posted @ 2019-12-14 14:45
七月的风*
阅读(168)
评论(0)
推荐(0)
摘要:
1. 普通的函数调用时,this 指的是 global 对象,由于 global 对象是作为 window 对象的一部分实现的,因此 this 认为是 window 对象 // 1. 普通的函数调用时 function max () { this.x = 1; // this 指的是 global 阅读全文
posted @ 2019-12-14 14:41
七月的风*
阅读(229)
评论(0)
推荐(0)

浙公网安备 33010602011771号