输出的值(关于this) var name the windowvar object {name:the object,getName:function(){return function(){return this.name}}}console.log(object.getName()());// 思考如何输出the object写出输出 function fn(){for (var i 0; i < 10; i) {console.log(i);}alert(…
pow() 如果接收两个参数,如 pow(x, y),则结果相当于 x**y,也就是 x 的 y 次方pow() 如果接收三个参数,如 pow(x, y, z),则结果相当于 (x**y) % z,也就是 x 的 y 次方再对 z 进行取余 In [7]: pow(2, 4) …