当下划线完成时是否有回调它是_.each循环,因为如果我consolelog之后立即显然我用每个循环填充的数组不是可用的。这是来自嵌套的_.each循环。_.each(data.recipe,function(recipeItem){varrecipeMap=that.get('recipeMap');recipeMap[recipeItem.id]={id:recipeItem.id,quantity:recipeItem.quantity};});console.log(that.get('recipeMap'));//notreadyyet. 最佳答案