摘要:/* 进度条动画效果 */ .progress-bar{ animation: progress-bar 0.5s; } @keyframes progress-bar { from { padding-right: 100%; } to { padding-right: 0%; } }
阅读全文
|
08 2019 档案
摘要:/* 进度条动画效果 */ .progress-bar{ animation: progress-bar 0.5s; } @keyframes progress-bar { from { padding-right: 100%; } to { padding-right: 0%; } }
阅读全文
摘要:1. 苹果手机时间格式转换时,要求2019/07/04,2019-07-04和2019.07.04这种不行,replace(/\-/g, "/")和replace(/\./g, "/")处理,不处理的话new Date()的时候会出问题(ios上面不支持-格式的时间转化) 2. ios new Da
阅读全文
摘要:折叠条左边内容 折叠条右边内容 .triangle-down{ width: 0; height: 0; border-width: 8px 4px 0; border-style: solid; border-color:#b2b2b2 transparent transpare...
阅读全文
摘要:wxml页面底部引入 根据js赋值 loadStatus ,来控制显示什么状态。
阅读全文
摘要:时间(年月日时分秒).substring(5, 16); // 比如 过滤掉 年和秒,也就是过滤首尾
阅读全文
摘要:// 升序 function compare(property) { return function (a, b) { var value1 = a[property]; var value2 = b[property]; return value1 - value2; } } // 降序 ...
阅读全文
摘要:state:{ 1 : 6, 2 : 5, 3: 4 } 用这样写法取值 state[1] state[2] state[3]
阅读全文
摘要:{{item.code}} {{item.code}} {{item.code}} .listStatusOne{ ...
阅读全文
摘要:onLoad页面第一次加载时执行,只执行一次,一般用于上一级点击进入下一级,需要传参数时使用。 onShow除了页面第一次加载时会执行,页面有什么小程序API操作行为也会触发执行。
阅读全文
摘要:page { font-family: -apple-system-font,Helvetica Neue, Helvetica,微软雅黑,"Microsoft YaHei", sans-serif; /* 宽高包括边框 */ box-sizing:border-box; } /* 水平居中 */ .horizontal{ display: flex; ...
阅读全文
摘要://检查是否存在新版本 wx.getUpdateManager().onCheckForUpdate(function (res) { // 请求完新版本信息的回调 // console.log("是否有新版本:" + res.hasUpdate); if (res.hasUpdate) {//如果有新版本 // 小程序有新版本...
阅读全文
摘要:// 网络连接失败 wx.getNetworkType({ success(res) { if (res.networkType == "none") { //这里写需要执行的事件 } } })
阅读全文
摘要://标准时间转年月日时分秒时间格式 function formatDateTime(date) { let y = new Date(date).getFullYear(); let m = new Date(date).getMonth() + 1; m = m 多少分钟 function standardGetInervalMinute(startDate, endDat...
阅读全文
|