let obj={o:"o",o1:"o1"}; for(let i in obj){ setTimeout(function(){ console.log(i); }); } 转载于:https://www.cnblogs.com/fanting/p/10033668.html