ajax请求格式

ajax请求格式

var rowsData = $('#receiptPrintList').datagrid('getSelections');
$.ajax({
    type: "post",
    url: "topupRecordController.do?updateReceiptInfo",
    data: {
        refNo:rowsData[0].refNo
    },
    dataType: "json",
    success: function(result){
    }
});
//作用同上
$.post("topupRecordController.do?updateReceiptInfo", {
        refNo:rowsData[0].refNo
    },
    function (data) {
    }, "json");

 

posted @ 2018-05-28 10:29  习惯沉淀  阅读(16898)  评论(5编辑  收藏  举报