我有一個ajax調用是抓住一個大json列表。有沒有什麼辦法可以讓進度條獲得json加載的實際價值(例如狀態欄上顯示的是1加載的200)?Ajax進度條與一個大列表
現在我有一個非常基本的AJAX調用
function SendAjax(urlMethod, jsonData, returnFunction) {
$.ajax({
type: "GET",
contentType: "application/json; charset=utf-8",
url: urlMethod,
data: jsonData,
dataType: "json",
success: function (msg) {
if (msg != null) {
ReturnJson(msg);
}
},
error: function (xhr, status, error) {
// Boil the ASP.NET AJAX error down to JSON.
var err = eval("(" + xhr.responseText + ")");
// Display the specific error raised by the server
alert(err.Message);
}
});
}
我可能最終會做這樣的事情。但是看起來更多的是「裝入77個項目」並計數直到它們全部被加載 – datatest