会员
众包
新闻
博问
闪存
赞助商
HarmonyOS
Chat2DB
所有博客
当前博客
我的博客
我的园子
账号设置
会员中心
简洁模式
...
退出登录
注册
登录
chenlw101
博客园
首页
新随笔
新文章
联系
订阅
管理
上一页
1
···
6
7
8
9
10
11
12
13
14
15
下一页
2018年11月3日
wepy打开页面首次不显示,但是数据已经有了
摘要: page页面首次打开异步数据无法通过props传递到子组件 解决:在开发者工具关闭上传代码时自动压缩就解决了,在wepy文档里也有强调
阅读全文
posted @ 2018-11-03 09:11 chenlw101
阅读(475)
评论(0)
推荐(0)
2018年10月30日
类似openDialog的弹窗
摘要: html data methods
阅读全文
posted @ 2018-10-30 16:37 chenlw101
阅读(394)
评论(0)
推荐(0)
2018年10月8日
vue的异步组件按需加载
摘要: 当build打包后,app.js过大的时候,可以考虑用异步组件的方式。 以下是异步组件加载方式:
阅读全文
posted @ 2018-10-08 17:33 chenlw101
阅读(195)
评论(0)
推荐(0)
2018年9月28日
vue实现点击、滑动右侧字母对应各个城市
摘要: 1.字母组件给父组件传递当前点击的字母值 2.父组件接收字母组件传递的值 3.实现滑动跳转城市
阅读全文
posted @ 2018-09-28 18:34 chenlw101
阅读(2103)
评论(1)
推荐(0)
vue的v-for数组和对象
摘要: key值
阅读全文
posted @ 2018-09-28 16:29 chenlw101
阅读(281)
评论(0)
推荐(0)
vue路由的使用
摘要: //配置路由 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
阅读(191)
评论(0)
推荐(0)
vue 的组件开发,以及swiper,axios的使用
摘要: 子组件
阅读全文
posted @ 2018-09-28 15:30 chenlw101
阅读(241)
评论(0)
推荐(0)
vue获取dom
摘要: //使用ref属性来获取当前的div的dom属性 //在js里面这样使用 this.$refs.wrapper
阅读全文
posted @ 2018-09-28 15:23 chenlw101
阅读(118)
评论(0)
推荐(0)
2018年9月19日
vue使用animate.css库
摘要: 同时有动画和过渡效果 在<transition></transition>里面加入自定义属性 appear(自定义) appear-active-class="animated shake" 这样就可以实现第一次加载也有动画的效果
阅读全文
posted @ 2018-09-19 15:19 chenlw101
阅读(298)
评论(0)
推荐(0)
2018年9月4日
保留两位小数
摘要: parseFloat(Math.round($scope.sbjs)/100).toFixed(2) ;//四舍五入,浮点型,保留两位小数
阅读全文
posted @ 2018-09-04 16:05 chenlw101
阅读(292)
评论(0)
推荐(0)
上一页
1
···
6
7
8
9
10
11
12
13
14
15
下一页