62,041
社区成员
发帖
与我相关
我的任务
分享
function postMsg(){
$.ajax({
type: "post",
url: "Default.ashx",//是ashx
data: {
name: 'newcell',
pwd: 123456
},
success: function (data) {
alert(data);
}
});
}
//ashx的处理
public void ProcessRequest (HttpContext context)
{
context.Response.ContentType = "text/plain";
context.Response.Write("你好");
}