當文件正在爲服務器上的用戶做準備時(約5秒),我想更改光標類型。這是不是這樣工作的:準備文件下載時更改光標類型
$("#toolbuttonexcelfile").on("click", function (e) {
var fileUrl = "hereIsMyFileUrl";
$("body").css("cursor", "progress");
window.location.href = fileUrl;
$("body").css("cursor", "auto");
});
@hutchbat貌似沒有事件執行windows.location.href變化 – Sibay
@Sibway後,這是事實。我的建議是要加載頁面。 – hutchbat