JS获取request字符串

function getQueryString(name) {
var reg = new RegExp("(^|&)" + name + "=([^&]*)(&|$)", "i");
var r = window.location.search.substr(1).match(reg);
if (r != null) return decodeURI(r[2]); return null;
}

上一篇:UVALive 2517 Moving Object Recognition(模拟)


下一篇:EF接触03