获取本地存储数据的项数。
包含存储项数的异步结果。
const result = await getLength();if (result.isOk()) { console.log('存储项数:', result.unwrap());} Copy
const result = await getLength();if (result.isOk()) { console.log('存储项数:', result.unwrap());}
获取本地存储数据的项数。