數(shù)據(jù)驅(qū)動(dòng)、堅(jiān)持為客戶提供有價(jià)值的服務(wù)和內(nèi)容
1.先在app.js里寫(xiě)一個(gè)方法,然后在onload里調(diào)用即可,具體說(shuō)明看代碼
loadToData:function(){ var that = this; var user = wx.getStorageSync('user') || {}; var userInfo = wx.getStorageSync('userInfo') || {}; console.log('緩存的數(shù)據(jù)', user,