标签:false als == substr cti sea query ble arc
function getQueryVariable(variable) {
var query = window.location.search.substring(1);
var vars = query.split("&");
for (var i = 0; i < vars.length; i++) {
var pair = vars[i].split("=");
if (pair[0] == variable) {
return pair[1];
}
}
return (false);
}
标签:false als == substr cti sea query ble arc
原文地址:https://www.cnblogs.com/tangqi9602/p/8797514.html