标签:amp href ref type 获取 new bsp ast javascrip
<script type="text/javascript">
var urlParams = (function (url) {
var result = new Object();
var idx = url.lastIndexOf(‘?‘);
if (idx > 0) {
var params = url.substring(idx + 1).split(‘&‘);
for (var i = 0; i < params.length; i++) {
idx = params[i].indexOf(‘=‘);
if (idx > 0) {
result[params[i].substring(0, idx)] = params[i].substring(idx + 1);
}
}
}
return result;
})(window.location.href);
var dbid= urlParams.dbid;
</script>
标签:amp href ref type 获取 new bsp ast javascrip
原文地址:http://www.cnblogs.com/dxldqt/p/6370917.html