$.ajax({
type: "post",
url: "../api/buysellfive.ashx",
data: "provinceid=" + $('#vstockcode').val(),
success: function (data) {
var a = data.split("|");//传回值用“|”隔开
// alert(a[0]);
// alert(a[1]);
$("#buy1").html(a[0]);
$("#_maxcont").html(a[1]);
//alert(data);
},
error: function (xhr, type, exception) {//获取ajax的错误信息
alert(xhr.responseText, "Failed");
}
type: "post",
url: "../api/buysellfive.ashx",
data: "provinceid=" + $('#vstockcode').val(),
success: function (data) {
var a = data.split("|");//传回值用“|”隔开
// alert(a[0]);
// alert(a[1]);
$("#buy1").html(a[0]);
$("#_maxcont").html(a[1]);
//alert(data);
},
error: function (xhr, type, exception) {//获取ajax的错误信息
alert(xhr.responseText, "Failed");
}
来自 “ ITPUB博客 ” ,链接:http://blog.itpub.net/22392018/viewspace-776858/,如需转载,请注明出处,否则将追究法律责任。
转载于:http://blog.itpub.net/22392018/viewspace-776858/