页面传参与接受
this.$router.push({path:"home",query:{id:1}})console.log(this.$route.query.id);
获得节点
varPageId=document.querySelector("page");varPageId=this.$refs.page;
js操作合集
获取网站协议:window.location.protocol或者document.location.protocol获取网站ip:window.location.host或者document.location.host
父子传递
//父页{{hehe}}div
click="go()"测试父/divadatav-if="page==1"ref="adate":hehe.sync="hehe"/adatascriptimportadatafrom"./a"exportdefault{