我正在从Javacript创建queryString,如下所示
serialize = function(obj) {
var str = [];
for(var p in obj)
if (obj.hasOwnProperty(p)) {
str.push(encodeURIComponent(p) + "=" + encodeURIComponent(obj[p]));
}
return str.join("&");
}
我传递的参数包含'&' (&符号)字符如下:
activityCategory=Cruises, Sailing & Water Tours
url编码值:
activityCategory=Cruises%2C%20Sailing%20%26%20Water%20Tours
但是
Request.QueryString["activityCategory"]
仅返回Cruises, Sailing
。
如何获得activityCategory