Commit 374b975e by Chao Sun

test

parent 5d11c903
//logs.js
//logs.js
//logs.js
const util = require('../../utils/util.js')
const util = require("../../utils/util.js");
//获取应用实例
const app = getApp()
const app = getApp();
Page({
data: {
isIpx:false,
isIpx: false,
logs: []
},
onLoad: function () {
onLoad: function() {
this.setData({
isIpx: app.globalData.isIpx,
logs: (wx.getStorageSync('logs') || []).map(log => {
return util.formatTime(new Date(log))
logs: (wx.getStorageSync("logs") || []).map(log => {
return util.formatTime(new Date(log));
})
})
});
console.log(1);
}
})
});
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment