前端代码如下:
- JScript code
$.getJSON("test.js", { name: "John", time: "2pm" }, function(json){ alert("JSON Data: " + json.users[3].name);});
一般处理程序里如何接收该json对象,并取得里面的值?
------解决方案--------------------------------------------------------
Request.QueryString["name"]
------解决方案--------------------------------------------------------
3楼正解
------解决方案--------------------------------------------------------
context.Request.QueryString["name"]
context.Request.QueryString["time"]
------解决方案--------------------------------------------------------
string name = context.Request.Params["name"];
string time = context.Request.Params["time"];