1
我有這樣的jQuery腳本:JavaScript回調函數
$(content).find('data').each(function(){
// parsing some data
$(this).find('something').each(function(){
$(this).find('something new').each(function(){
// etc.
}};
});
});
...我想調用函數XYZ()這個腳本結束後。
這不是工作(它會調用函數XYZ()太早):
$(content).find('data').each(function(){
// parsing some data
}, XYZ());
有什麼辦法呢?謝謝。