调用一般处理程序 提供接口api

 

asp.net

$.ajax({
type: "Post",
url: "LuckDraw.aspx/UserCount",
contentType: "application/json",
data: "",
dataType: 'json',
success: function (data) {
data = eval("(" + data.d + ")").result;

$('#usercount').html(data);

}
});

 

一般处理程序

$.ajax({
type: "Post",
url: "TouZi.ashx?UserId=5381&AccountPwd=123456&FundId=6094&FunMoney=100",
contentType: "application/json",
//data: { UserId: "5381", AccountPwd: "79B78E979D20C2CD", FundId: "6143", FunMoney: "100" },
//data: { "UserId": "5381", "AccountPwd": "79B78E979D20C2CD", "FundId": "6143", "FunMoney": "100" },
dataType: 'json',
success: function (data) {


}
});

posted on 2016-02-01 15:23  屁锅  阅读(971)  评论(0编辑  收藏  举报