单项选择题
对以下代码片段作用的最准确描述是( )
try {
const res = wx.getStorageInfoSync()
console.log(res.keys)
console.log(res.currentSize)
console.log(res.limitSize)
} catch (e){
// Do something when catch error
}
A、 异步获取当前storage的相关信息。
B、 同步获取当前storage的相关信息。
C、 异步获取当前storage中指定key的文件信息。
D、 同步获取当前storage中指定key的文件信息。
点击查看答案&解析
