上一页 1 ··· 6 7 8 9 10 11 12 13 14 15 下一页
摘要: page页面首次打开异步数据无法通过props传递到子组件 解决:在开发者工具关闭上传代码时自动压缩就解决了,在wepy文档里也有强调 阅读全文
posted @ 2018-11-03 09:11 chenlw101 阅读(466) 评论(0) 推荐(0) 编辑
摘要: html data methods 阅读全文
posted @ 2018-10-30 16:37 chenlw101 阅读(389) 评论(0) 推荐(0) 编辑
摘要: 当build打包后,app.js过大的时候,可以考虑用异步组件的方式。 以下是异步组件加载方式: 阅读全文
posted @ 2018-10-08 17:33 chenlw101 阅读(190) 评论(0) 推荐(0) 编辑
摘要: 1.字母组件给父组件传递当前点击的字母值 2.父组件接收字母组件传递的值 3.实现滑动跳转城市 阅读全文
posted @ 2018-09-28 18:34 chenlw101 阅读(2058) 评论(1) 推荐(0) 编辑
摘要: key值 阅读全文
posted @ 2018-09-28 16:29 chenlw101 阅读(273) 评论(0) 推荐(0) 编辑
摘要: //配置路由 Vue.use(Router) export default new Router({ routes: [{ path: '/', name: 'Home', component: Home },{ path: '/city', name: 'City', component: City ... 阅读全文
posted @ 2018-09-28 15:34 chenlw101 阅读(184) 评论(0) 推荐(0) 编辑
摘要: 子组件 阅读全文
posted @ 2018-09-28 15:30 chenlw101 阅读(222) 评论(0) 推荐(0) 编辑
摘要: //使用ref属性来获取当前的div的dom属性 //在js里面这样使用 this.$refs.wrapper 阅读全文
posted @ 2018-09-28 15:23 chenlw101 阅读(109) 评论(0) 推荐(0) 编辑
摘要: 同时有动画和过渡效果 在<transition></transition>里面加入自定义属性 appear(自定义) appear-active-class="animated shake" 这样就可以实现第一次加载也有动画的效果 阅读全文
posted @ 2018-09-19 15:19 chenlw101 阅读(293) 评论(0) 推荐(0) 编辑
摘要: parseFloat(Math.round($scope.sbjs)/100).toFixed(2) ;//四舍五入,浮点型,保留两位小数 阅读全文
posted @ 2018-09-04 16:05 chenlw101 阅读(271) 评论(0) 推荐(0) 编辑
上一页 1 ··· 6 7 8 9 10 11 12 13 14 15 下一页