码迷,mamicode.com
首页 > Windows程序 > 详细

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

时间:2016-02-01 18:02:25      阅读:160      评论:0      收藏:0      [点我收藏+]

标签:

 

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) {


}
});

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

标签:

原文地址:http://www.cnblogs.com/piguo/p/5175469.html

(0)
(0)
   
举报
评论 一句话评论(0
登录后才能评论!
© 2014 mamicode.com 版权所有  联系我们:gaon5@hotmail.com
迷上了代码!