摘要: let pritime = "2018-04-07 14:38:16"; let minute = 1000 * 60; let hour = minute * 60; let day = hour * 24; let halfamonth = day * 15; let month = day * 阅读全文
posted @ 2019-10-22 15:31 久巷 阅读(133) 评论(0) 推荐(0) 编辑
摘要: 1、引入组件 2、state中设置选中状态 // button按钮的默认选中,0代表选中 state = { currentIndex: 0 } 3、设置class的样式,点击更改选中 selectNew(){ this.setState({currentIndex:0}); } selectOld 阅读全文
posted @ 2019-03-05 18:30 久巷 阅读(1996) 评论(0) 推荐(0) 编辑
摘要: 1、 安装taro-ui (此处使用cnpm) cnpm install taro-ui 2、 全局引入样式 app.scss sass :@import "~taro-ui/dist/style/index.scss"; 3、 使用tabBar组件中引入AtTabBar ,详情可查询官网:http 阅读全文
posted @ 2019-02-18 11:11 久巷 阅读(5905) 评论(0) 推荐(0) 编辑