wx.removeStorageSync,從本地緩存中同步移除指定 key
2017-12-11
導(dǎo)讀:從本地緩存中同步移除指定 key 。 參數(shù)說(shuō)明: 參數(shù) 類(lèi)型 必填 說(shuō)明 key String 是 本地緩存中的指定的 key 示例代碼: try { wx.removeStorageSync( 'key' )} catch (e) { // Do something when catch error }...
從本地緩存中同步移除指定 key 。
參數(shù)說(shuō)明:
參數(shù) | 類(lèi)型 | 必填 | 說(shuō)明 |
---|---|---|---|
key | String | 是 | 本地緩存中的指定的 key |
示例代碼:
try {
wx.removeStorageSync('key')
} catch (e) {
// Do something when catch error
}
更多微信小程序開(kāi)發(fā)教程,關(guān)注hi小程序。
第二部分:如何開(kāi)通一個(gè)小商店