var obj = {};
for(var k in obj) { //遍历对象,k即为key,obj[k]为当前k对应的值
console.log(obj[k]); }
文章来自:https://zhidao.baidu.com/question/745580503520796772.html
2022-10-22 21:50:35
var obj = {};
for(var k in obj) { //遍历对象,k即为key,obj[k]为当前k对应的值
console.log(obj[k]); }
文章来自:https://zhidao.baidu.com/question/745580503520796772.html