时间:2019-05-04 来源:小程序工厂
for (var i = 0; i < that.data.arrayy.length; i++) {
if (i == e.target.dataset.in) {
wx.setStorage({
key: 'indexchande',
data: {
time: that.data.arrayy[i].pay_time,
address1: that.data.arrayy[i].address2,
address: that.data.arrayy[i].address2,
mid: that.data.arrayy[i].mid,
local:that.data.local
取值
wx.getStorage({
key: 'indexchande',
success: function (res) {
that.setData({
time: res.data.time,
address: res.data.address,
address1: res.data.address1,
mid: res.data.mid
});
that.listsa(1, res.data.local)
怎么设置的 缓存,然后怎么取的缓存,贴下代码