POST请求
地址为:http://ServerIp/WebSiteName/WorkOrderService/WorkOrderBacthProcessService?input={"Page":"1","Rows":"10","Sord":"ASC","Sidx":"EndTime"}
请求方式:
$.ajax({ type : "POST", url:'http://ServerIp/WebSiteName/WorkOrderService/WorkOrderBacthProcessService', data: 'input={"Page": "1","Rows": "10","Sord": "ASC","Sidx": "EndTime"}', dataType: 'json', success: function (data) { console.log(data) }, error:function(data){ alert("服务器请求超时!"); window.location.href = "#"; } });
$.post("http://ServerIp/WebSiteName/WorkOrderService/WorkOrderBacthProcessService",'input={"Page": "1","Rows": "10","Sord": "ASC","Sidx": "EndTime"}',function(d){ console.log(d) },'json')
dataType与contentType的区别