我试图让我的 JQuery 暂停,直到加载了一个对象。我已经看到了 .delay() 函数,但我不想延迟特定对象 $('item').delay(10) 那么我可以执行以下操作吗?
while(myObject==null){
// 1 second wait for ScriptManager.RegisterClientScriptBlock to finish building Json
pause(1);
}
DosomethingWithJson();
我试图让我的 JQuery 暂停,直到加载了一个对象。我已经看到了 .delay() 函数,但我不想延迟特定对象 $('item').delay(10) 那么我可以执行以下操作吗?
while(myObject==null){
// 1 second wait for ScriptManager.RegisterClientScriptBlock to finish building Json
pause(1);
}
DosomethingWithJson();