获取地址栏url传参方法
例如:A页面向 B页面传入id参数,
B页面可以通过:
let obj = new URLSearchParams(location.search);
let id = obj.get(‘id’);//获取当前传入的Id

相关文章: