dengzeyu 1 week ago
parent 74309e8ed6
commit 9f7f796f5f

@ -1,7 +1,7 @@
// app.js // app.js
App({ App({
onLaunch() { onLaunch() {
// 展示本地存储能力 // 展示本地存储能力 6
const logs = wx.getStorageSync('logs') || [] const logs = wx.getStorageSync('logs') || []
logs.unshift(Date.now()) logs.unshift(Date.now())
wx.setStorageSync('logs', logs) wx.setStorageSync('logs', logs)

Loading…
Cancel
Save