見下圖:
代碼說明:
1 $.showLoading("加載中..."); 2 $.ajax({ 3 4 5 success : function(data) { 6 $.hideLoading(); 7 } 8 error : function() { 9 $.hideLoading(); 10 alert("出錯了,請重試!"); 11 } 12 )}
見下圖:
代碼說明:
1 $.showLoading("加載中..."); 2 $.ajax({ 3 4 5 success : function(data) { 6 $.hideLoading(); 7 } 8 error : function() { 9 $.hideLoading(); 10 alert("出錯了,請重試!"); 11 } 12 )}
本站轉載的文章為個人學習借鑒使用,本站對版權不負任何法律責任。如果侵犯了您的隱私權益,請聯系本站郵箱yoyou2525@163.com刪除。