场景
jquey中实现发送ajax请求。
实现
function printCode(id){
debugger
$.ajax({
type: 'POST',
url: "",
cache: false, //禁用缓存
data: JSON.stringify({"TableName":"wms_receive_order","PrintID":["id"]}),
contentType: "application/json",
dataType: "json",
success: function (result) {
debugger
alert(result)
}
})
return false;
}