页面传参与接受 this.$router.push({path:"home",query: { id:1}}) console.log(this.$route.query.id);获得节点 var PageId = document.querySelector("page"); var PageId = this.$refs.page;js操作合集 获取网站协议:window.location.protocol或者document.location.protocol 获取网站ip:window.location.host或者document.location.host 父子传递//父页 {{hehe}} 测试父 //子页 测试子 检测pc端与移动端