jquery ajax示例
生活随笔
收集整理的這篇文章主要介紹了
jquery ajax示例
小編覺得挺不錯的,現在分享給大家,幫大家做個參考.
?
?
$.ajax({type: "POST",//方法類型dataType: "json",//預期服務器返回的數據類型url: "${ctx }/salesEleMgmt/delPackage",data: {"packageId":obj},success: function (result) {console.log(result);//打印服務端返回的數據(調試用)if(result == 1){//$.jBox.info("刪除成功");location.reload(true);}else{$.jBox.error("刪除失敗,請重試!");}},error : function() {$.jBox.error("系統異常,請聯系管理員!");}});?
轉載于:https://www.cnblogs.com/miye/p/7793415.html
總結
以上是生活随笔為你收集整理的jquery ajax示例的全部內容,希望文章能夠幫你解決所遇到的問題。
- 上一篇: ORM框架之------Dapper,N
- 下一篇: Spark Streaming Back