微信小程序 缓存问题

wx.showModal({

              title: '提示',

              content: '还有未完成关卡,不能新建,需调用关卡单词吗?',

              success: function (res) {

                if (res.confirm) {

                  console.log('用户点击确定')                 

                  wx.setStorageSync('gkid', fres.data.gkid);

                  // app.ggdata.gkid=fres.data.gkid

                  // console.log(fres.data.data)  

                  // console.log(app.ggdata.wordarr) 

                  // console.log(fres.data.data[0])               

                  // app.ggdata.wordarr = fres.data.Data;

                  wx.setStorageSync('wordarr', fres.data.data);

                  // console.log(wx.getStorageSync('wordarr'))

                  console.log('why')

                  // console.log(app.ggdata.wordarr)

                } else if (res.cancel) {

                  console.log('用户点击取消')

                }

              }

            })

你可能感兴趣的:(微信小程序)