foreach循环对异步的处理
list.forEach(function(item,index){
var sendData = function(index, message) {
setTimeout(function() {
sync(); //异步方法
}, 200*index);
}
sendData(index, message)
})

浙公网安备 33010602011771号