标签:login round user span request load style div har
request 获取参数,response 响应,
public string getQueryStringString(string obj) { HttpRequest request = HttpContext.Current.Request; return getToString(request.QueryString[obj]); }
这种获取参数的前端写法:
$.ajax({ type: ‘post‘, url: ‘mobile.ashx?type=login‘, data: { "unname": $("#user").val() , "upass": $("#password").val() },
这种获取参数的前端写法:
public string getFormString(string obj) { HttpRequest request = HttpContext.Current.Request; return getToString(request.Form[obj]); }
var test = { "test": picSrc , "type": "uploadimg1" , "tid": taskID , "imgname": $("#imgname" + imgtype).val() + date }
HttpContext.Current.Server.MapPath("xxxxxx");
标签:login round user span request load style div har
原文地址:http://www.cnblogs.com/shourenwangzi/p/7943913.html