标签:bst str sub regexp reg query function text cap
function getQueryString(text) {
var reg = new RegExp("(^|&)" + text + "=([^&]*)(&|$)");
var r = window.location.search.substr(1).match(reg);
if (r != null) return unescape(r[2]); return null;
}
标签:bst str sub regexp reg query function text cap
原文地址:http://www.cnblogs.com/norma/p/7724908.html