简单获取?方式页面传参
let params = new URLSearchParams(location.search)
// 这里 get 里面写 ?传参的键名
let [myId] = [params.get('id')]
this.currentId = myId
OK~
let params = new URLSearchParams(location.search)
// 这里 get 里面写 ?传参的键名
let [myId] = [params.get('id')]
this.currentId = myId
OK~