读取原始字符串,不存在返回 undefined,空字符串正常返回。key 仅支持 1–128 位字母、数字、下划线和连字符。
undefined
当前用户须已登录小黑盒客户端。未登录时,Promise 以 UNAUTHORIZED 拒绝, 不会自动拉起登录或发送云存储请求;业务应提示用户登录成功后重试。
UNAUTHORIZED
HbMiniProgramSDKError 未登录(UNAUTHORIZED)、参数错误、权限不足或请求失败时抛出。
0.9.2
android
ios
ohos
windows
macos
android none
ios none
ohos none
windows none
macos none
读取原始字符串,不存在返回
undefined,空字符串正常返回。key 仅支持 1–128 位字母、数字、下划线和连字符。