Loading...
简单的实现:var urlParams = new URLSearchParams('?post=1234&action=edit'); console.log(urlParams.get('action')); // "edit"这个需要URLSearchParams,IE浏览器不支持这个复杂实现function getUrlParams(param){ /...