摘要:
自定义组件直接加@click方法是不管用的,要加native <p><user-defined @click.native="add()"></user-defined></p>//加.native后add()方法才有用 阅读全文
posted @ 2019-11-12 18:49
lipu1993
阅读(793)
评论(0)
推荐(0)
摘要:
:style="{'background-image':'url('+urlImg+')'}"//urlImg 一个动态提取的值 阅读全文
posted @ 2019-11-12 18:27
lipu1993
阅读(130)
评论(0)
推荐(0)
摘要:
按需加载路由可避免不必要的路由加载 新建router文件下movie文件 export default { path:'/movie', redirect:'/movie/nowPlaying', component:()=>import('@/view/movie'),//按需加载路由只在view 阅读全文
posted @ 2019-11-12 17:49
lipu1993
阅读(217)
评论(0)
推荐(0)
摘要:
vue-router 的重定向-redirect 作用可使不同的路径都调回定向的页面 path:'/city', redirect:'/city/allCity',//重新定向输入 /city 依然会跳到/city/allCity 阅读全文
posted @ 2019-11-12 12:21
lipu1993
阅读(1720)
评论(0)
推荐(0)

浙公网安备 33010602011771号