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