Commit 374b975e by Chao Sun

test

parent 5d11c903
//logs.js //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({ Page({
data: { data: {
isIpx:false, isIpx: false,
logs: [] logs: []
}, },
onLoad: function () { onLoad: function() {
this.setData({ this.setData({
isIpx: app.globalData.isIpx, isIpx: app.globalData.isIpx,
logs: (wx.getStorageSync('logs') || []).map(log => { logs: (wx.getStorageSync("logs") || []).map(log => {
return util.formatTime(new Date(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