query each循环遍历完再执行的方法由于each是异步的 因此要加计数器.var eachcount=0;$(“.emptytip”).each(function(){异步
eachcount++console.log(eachcount);函数
if(eachcount>=$(“.emptytip”).length){alert(‘循环完毕’)//这个执行函数ip
}});io