zhichiyixiazhegewangzhan

By galaxyi9500 at 56.2天前 • 178次点击

shougongzhichi

zhichiyixiazheg, ewangzhan


帽哦,2334

galaxyi9500 at 56.2天前
1

代码支持

 onLaunch: <span class="hljs-function"><span class="hljs-keyword">function</span> <span class="hljs-params">()</span> {</span>
    <span class="hljs-comment">//调用API从本地缓存中获取数据</span>
    <span class="hljs-keyword">var</span> logs = wx.getStorageSync(<span class="hljs-string">'logs'</span>) || []
    logs.unshift(<span class="hljs-built_in">Date</span>.now())
    wx.setStorageSync(<span class="hljs-string">'logs'</span>, logs)
  },

琴歌 at 55.4天前
2
登录 后发表评论