摘要: let date=(new Date()).getHours(); let hoursTip = ""; if(date>=0&&date<12){ hoursTip="上午好" }else if(date>=12&&date<18){ hoursTip="下午好" }else{ hoursTip= 阅读全文
posted @ 2022-03-13 18:35 槑孒 阅读(287) 评论(0) 推荐(0) 编辑
摘要: <scroll-view scroll-x="true" style=" width: 600rpx; height: 500rpx;" class="scroll_display"> <text class="test_display"> 人的一生只有5%是精彩的,只有5%是痛苦的,另外的90%是 阅读全文
posted @ 2022-03-13 18:33 槑孒 阅读(290) 评论(0) 推荐(0) 编辑
摘要: 存储 wx.setStorageSync(key, value) 获取 wx.getStorageSync(key) 扩展,我们可以做一个有效期限制 // 1.获取本地存储的数据 const data = wx.getStorageSync(key) // 2.判断这个key对应的值是否存在 if 阅读全文
posted @ 2022-03-13 14:03 槑孒 阅读(41) 评论(0) 推荐(0) 编辑
摘要: 下面文章方面比较全面,可以看看: JavaScript Date(日期)对象 这个是创建项目的时候,官方提供的 utils/util.js. const formatTime = date => { const year = date.getFullYear() const month = date 阅读全文
posted @ 2022-03-13 13:47 槑孒 阅读(203) 评论(0) 推荐(0) 编辑
摘要: 接上一篇:ColorUI | TabBar搬运 ColorUI | TabBar分页组件页面内容搭建 一、在app.json添加路径,保存后会自动生成相应文件 "pages":[ "pages/index/index", "pages/basics/home/home" ], 二、pages/bas 阅读全文
posted @ 2022-03-13 12:46 槑孒 阅读(254) 评论(0) 推荐(0) 编辑
摘要: 其实,它这个TabBar就是一个页面,页面里面分别添加其它组件构成分页。 理解了这些,就可以很容易搭建了 组件库下载地址 一、新建一个项目 二、拷贝到项目根目录 三、在app.wxss中添加 @import "colorui/main.wxss"; @import "colorui/icon.wxs 阅读全文
posted @ 2022-03-13 11:23 槑孒 阅读(135) 评论(0) 推荐(0) 编辑