标签:window word split oca pre keyword rem ring 人工智
QueryString = {
data: {},
Initial: function() {
var aPairs, aTmp;
var queryString = new String(window.location.search);
queryString = queryString.substr(1, queryString.length); //remove "?"
aPairs = queryString.split("&");
for (var i = 0; i < aPairs.length; i++) {
aTmp = aPairs[i].split("=");
this.data[aTmp[0]] = aTmp[1];
}
},
GetValue: function(key) {
return this.data[key];
}
}
//先初始化
QueryString.Initial();
//例:获得名为deliverQty的参数值
var deliverQty = parseInt(QueryString.GetValue(‘deliverQty‘));
再分享一下我老师大神的人工智能教程吧。零基础!通俗易懂!风趣幽默!还带黄段子!希望你也加入到我们人工智能的队伍中来!https://blog.csdn.net/jiangjunshow
标签:window word split oca pre keyword rem ring 人工智
原文地址:https://www.cnblogs.com/swdhywhd/p/10310729.html