...
|
...
|
@@ -146,6 +146,23 @@ function queryString() { |
|
|
return vars;
|
|
|
}
|
|
|
|
|
|
// 给jQuery 扩展 queryString函数
|
|
|
$.extend({
|
|
|
queryString: function() {
|
|
|
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;
|
|
|
}
|
|
|
});
|
|
|
|
|
|
//个人中心左侧栏头像加载失败后,显示默认头像
|
|
|
(function() {
|
|
|
$(window).load(function() {
|
...
|
...
|
|