js代码:
$.post("/WebSite1/Handler2.ashx", { action: "ShowTree", num: Math.random() }, showTree);
后台代码:
String action = context.Request.Params["action,num"].ToString();
在浏览器调试中都能看到参数,但是后台显示变量action为null,菜鸟表示弄了很久也没找到原因。。求大神解惑
js代码:
$.post("/WebSite1/Handler2.ashx", { action: "ShowTree", num: Math.random() }, showTree);
后台代码:
String action = context.Request.Params["action,num"].ToString();
在浏览器调试中都能看到参数,但是后台显示变量action为null,菜鸟表示弄了很久也没找到原因。。求大神解惑
String action = context.Request.Params["action"].ToString();
String num = context.Request.Params["num"].ToString();
你试试这样可以吗?
由于这是两个参数,不能放在一个索引器中。