onShow() {
this.getRequest()
},
methods: {
getRequest(){
var search = window.location.href.split("=")[1]
console.log(search);
}
}
浏览器内运行效果
如果window.location.href
不执行 可以换成 location.search
还可以是window.location.hash