标签:
$.ajax({ url:"/yjxtj/index.php?m=app&a=purchase", async:true,//同步请求,默认情况下是异步(true) beforeSend:function(){ $(".warning").show(); }, type: ‘post‘, dataType: ‘json‘, data: { uid: uid, packageid: "211005", num: num, totalprice: num*salePrice, }, error:function(request) { alert("Connection error"); }, success:function(data){ var data =eval(‘(‘+data+‘)‘); } });
标签:
原文地址:http://www.cnblogs.com/lizhihui/p/4981752.html