此方法可以自动识别并获取页面URL中的参数,用起来很是方便,使用方法如下: const editData = getQueryString(window.location.href, ‘editData’); 相关文章: