/传递参数 xxxxxx.jsp?name=23 /获取url的属性值
function GetUrlByParamName(name) {
var reg = new RegExp("(^|&)"+ name +"=([^&]*)(&|$)");
var URL = decodeURI(window.location.search);
var r = URL.substr(1).match(reg);
if(r!=null){
//decodeURI() 函数可对 encodeURI() 函数编码过的 URI 进行解码
return decodeURI(r[2]);
};
return null;
}