获取url参数方法

79 阅读1分钟
const a = new URLSearchParams(location.search);
this.type = a.get("type");