现在,如果使用此javascript代码正在处理任何ajax,我就更改了光标图像
$(function(){
$("html").bind("ajaxStart", function(){
$(this).addClass('busy');
}).bind("ajaxStop", function(){
$(this).removeClass('busy');
});
});
Run Code Online (Sandbox Code Playgroud)
及以下的CSS
html.busy, html.busy * {
cursor: wait !important;
}
Run Code Online (Sandbox Code Playgroud)
现在我也想在光标旁边添加一些文本。并在ajax完成时将其删除。不使用任何jQuery插件怎么可能?