Tag: 语言 互操作性

如何显示在jQuery加载微调?

在Prototype中,我可以用这个代码显示一个“loading …”图像: var myAjax = new Ajax.Request( url, {method: 'get', parameters: pars, onLoading: showLoad, onComplete: showResponse} ); function showLoad () { … } 在jQuery中 ,我可以加载一个服务器页面到这个元素: $('#message').load('index.php?pg=ajaxFlashcard'); 但是如何像我在Prototype中那样附加一个加载微调器到这个命令?