日期:2014-05-16 浏览次数:20951 次
var queryString=function(key){
return (document.location.search.match(new RegExp("(?:^\\?|&)"+key+"=(.*?)(?=&|$)"))||['',null])[1];
}
var c=queryString("code")
------解决方案--------------------
学习阶段jquery
------解决方案--------------------
$.ajax({
async: true,
cache: true,
type: "POST",
dataType: "xml",
url: "processHandler.ashx"+location.search, //========
data: {key:"value"},
error: function(xml) {alert('Error loading XML document11:' + xml);},
timeout: 1000,
success: function(xml) {
// 处理代码.....
});
}
});
------解决方案--------------------
把request("code")换成 <%=request.getParameter("code")%>这样应该是可以的。