UNPKG

always-helper

Version:

前端项目开发中,经常会用到一些工具函数的合集。

2 lines (1 loc) 184 B
export default function(e){var o=/[?&]([^=#]+)=([^&#]*)/g;e=e||window.location.href;for(var n,r={};null!==(n=o.exec(e));)r[decodeURIComponent(n[1])]=decodeURIComponent(n[2]);return r}