摘要:
wxml页面底部引入 根据js赋值 loadStatus ,来控制显示什么状态。 阅读全文
摘要:
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... 阅读全文
|