摘要: 一、Dom层级关系 <div class="wrapper"> <div class="content"> content... </div> </div> wrapper里面不能存在多个同级div,如果你这样写: <div class="classifyTitle" ref="wrapper"> 阅读全文
posted @ 2019-10-28 17:51 Moliy-Moliy 阅读(308) 评论(0) 推荐(0) 编辑
摘要: 当然还可以这样: 1》this.$router.push('/home/newsinfo'+id) >这是router中写的path; 2》this.$router.push({path:'/home/newsinfo'+id}); >传递对象 3》this.$router.push({name:' 阅读全文
posted @ 2019-10-28 10:11 Moliy-Moliy 阅读(162) 评论(0) 推荐(0) 编辑