摘要: ``` javascript function getUrlParams(query) { var params = {}; query = query || window.location.search; query.replace(/([^&=?]+)=([^&]+)/g, function(match, $1, $2) { params[$1] = $2; return match; }); 阅读全文
posted @ 2020-04-01 16:13 月半流云 阅读(436) 评论(0) 推荐(0) 编辑