摘要: /** * 解析url参数 * @example ?id=12345&a=b * @return Object {id:12345,a:b} */ export function urlParse () { let url = window.location.search; let obj = {}; let reg = /[?&][^?&]+=[^?&]+/g;... 阅读全文
posted @ 2018-05-03 12:04 大圆圈 阅读(616) 评论(0) 推荐(0) 编辑