如下代碼:var a = [];for(var i = 0;i<10;i++){ a[i] = function(){ console.log(i); }}a[6](); //結果是10????為什么
數組賦值的疑問
夢里花落0921
2018-10-09 17:29:28