...
|
...
|
@@ -266,21 +266,23 @@ $('.nav-home').on('touchstart', function() { |
|
|
window.cancelAnimationFrame = cancelAnimationFrame;
|
|
|
}());
|
|
|
|
|
|
function queryString() {
|
|
|
var vars = [],
|
|
|
hash,
|
|
|
i;
|
|
|
var hashes = window.location.search.slice(1).split('&');
|
|
|
|
|
|
for (i = 0; i < hashes.length; i++) {
|
|
|
hash = hashes[i].split('=');
|
|
|
vars.push(hash[0]);
|
|
|
vars[hash[0]] = hash[1];
|
|
|
}
|
|
|
return vars;
|
|
|
}
|
|
|
|
|
|
// 给jQuery 扩展 queryString函数
|
|
|
$.extend({
|
|
|
queryString: function() {
|
|
|
var vars = [],
|
|
|
hash,
|
|
|
i;
|
|
|
var hashes = window.location.href.slice(window.location.href.indexOf('?') + 1).split('&');
|
|
|
|
|
|
for (i = 0; i < hashes.length; i++) {
|
|
|
hash = hashes[i].split('=');
|
|
|
vars.push(hash[0]);
|
|
|
vars[hash[0]] = hash[1];
|
|
|
}
|
|
|
return vars;
|
|
|
}
|
|
|
queryString: queryString
|
|
|
});
|
|
|
|
|
|
// 临时修改 footer
|
...
|
...
|
@@ -308,3 +310,5 @@ window.getShoppingKey = getShoppingKey; |
|
|
window.rePosFooter = rePosFooter;
|
|
|
|
|
|
window.reMarginFooter = reMarginFooter;
|
|
|
|
|
|
window.queryString = queryString(); |
...
|
...
|
|