摘要: 1.获取地址栏参数 this.$route.query.id 2.用this.$router.push({path:'index',query:{id:1}})跳转页面无刷新,无法监听传递的参数,可用以下方法解决: watch:{ '$route':'fun' } fun为地址栏变化要写的函数 3. 阅读全文
posted @ 2018-01-12 17:56 米牙 阅读(128) 评论(0) 推荐(0) 编辑
摘要: 不能直接写,要写成: calc(100% - 20px) 注:减号两边的空格 css样式设置超出部分... span{ width: 88%; white-space: nowrap; text-overflow: ellipsis; overflow: hidden; } span:after{ 阅读全文
posted @ 2018-01-12 11:24 米牙 阅读(611) 评论(0) 推荐(0) 编辑