小程序使用本地存储
作者:互联网
wx.setStorage({
string key,
any data,
function success,
function fail,
function complete
})
例如:
wx.setStorage({
key:"key",
data:"value"
})
wx.setStorageSync(string key, any data)//同步
例如:
wx.setStorageSync("key","value")
标签:function,setStorage,存储,setStorageSync,本地,程序,key,data,wx 来源: https://www.cnblogs.com/baixinL/p/11997291.html