alert(0/0); // 输出NaN
alert(1/0); // 输出Infinity
alert(function(){alert("3333");}); // 将输出两次,第一次alert出3333,第二次alert出undefined
var len = 4;
while(len--){
setTimeout(function(){console.log(len)},3000);
console.log(len);
}
// -1 -1 -1 -1
// 因为js中的len是引用的,所以在计时器结束后引用len,此时的len为-1