摘要:
大家都知道Math.random是 javascript 中返回伪随机数的函数,但查看 MDN,The Math.random() function returns a floating-point, pseudo-random number in the range [0,1)that is, f... 阅读全文
摘要:
示例1:function makeCounter() { var i = 0; console.log( ++i );}var counter = makeCounter(); // 输出: 1counter(); //TypeError: undefined is not a fun... 阅读全文