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");