API函数( )用于从本地缓存中同步清除所有数据。
A: wx.removeStorage(Object object)
B: wx.removeStorageSync(string key)
C: wx.clearStorage(Object object)
D: wx.clearStorageSync()
A: wx.removeStorage(Object object)
B: wx.removeStorageSync(string key)
C: wx.clearStorage(Object object)
D: wx.clearStorageSync()
举一反三
- API函数( )用于从本地缓存中同步移除指定 key对应的数据。 A: wx.getStorageInfo(Object object) B: Object wx.getStorageInfoSync() C: wx.removeStorage(Object object) D: wx.removeStorageSync(string key)
- API函数( )用于同步获取当前storage的相关信息。 A: wx.removeStorage(Object object) B: wx.removeStorageSync(string key) C: wx.getStorageInfo(Object object) D: Object wx.getStorageInfoSync()
- API函数( )用于异步获取当前storage的相关信息。 A: wx.getStorageInfo(Object object) B: Object wx.getStorageInfoSync() C: wx.removeStorage(Object object) D: wx.removeStorageSync(string key)
- 函数wx。getSavedFileInfo(Object object)的参数属性object。success (Object res)的参数属性( )为本地文件大小,以字节为单位。 A: success B: fail C: createTime D: size
- 删除和清除缓存的方法为wx.clearStorage(Object object),用于清理本地数据缓存。