var object = {};object[4] = 40;object[5] = 100;for(var key in object){ console.log(typeof(key));}输出结果:string【默认转化为string类型了】
確定! 回上一頁