@dcloudio/uni-app-x 0.7.37 → 0.7.39
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/package.json +1 -1
- package/types/UniPage.d.ts +48 -9
- package/types/app.d.ts +8 -5
- package/types/native/AsyncApiResult.d.ts +1 -0
- package/types/native/CanvasRenderingContext2D.d.ts +1 -1
- package/types/native/IUniElement.d.ts +130 -35
- package/types/native/UniElement.d.ts +2 -1
- package/types/native/UniTextElement.d.ts +1 -0
- package/types/native/global.d.ts +16 -0
- package/types/page.d.ts +47 -5
- package/types/uni/env/index.d.ts +87 -73
- package/types/uni/global.d.ts +1 -0
- package/types/uni/index.d.ts +1 -0
- package/types/uni/uni-map-tencent-global.d.ts +33 -0
- package/types/uni/uni-map-tencent-map.d.ts +52 -0
- package/types/uni/uts-plugin-api/global.d.ts +2 -1
- package/types/uni/uts-plugin-api/index.d.ts +2 -1
- package/types/uni/uts-plugin-api/lib/uni-addPhoneContact/utssdk/global.d.ts +0 -2
- package/types/uni/uts-plugin-api/lib/uni-addPhoneContact/utssdk/index.d.ts +0 -1
- package/types/uni/uts-plugin-api/lib/uni-addPhoneContact/utssdk/interface.d.ts +212 -219
- package/types/uni/uts-plugin-api/lib/uni-arrayBufferToBase64/utssdk/interface.d.ts +73 -73
- package/types/uni/uts-plugin-api/lib/uni-authentication/utssdk/interface.d.ts +331 -205
- package/types/uni/uts-plugin-api/lib/uni-base64ToArrayBuffer/utssdk/interface.d.ts +73 -73
- package/types/uni/uts-plugin-api/lib/uni-canvas/utssdk/interface.d.ts +848 -208
- package/types/uni/{uts-plugin-extend → uts-plugin-api}/lib/uni-chooseLocation/utssdk/global.d.ts +5 -6
- package/types/uni/{uts-plugin-extend → uts-plugin-api}/lib/uni-chooseLocation/utssdk/index.d.ts +3 -3
- package/types/uni/uts-plugin-api/lib/uni-chooseLocation/utssdk/interface.d.ts +414 -0
- package/types/uni/uts-plugin-api/lib/uni-clipboard/utssdk/interface.d.ts +2 -2
- package/types/uni/uts-plugin-api/lib/uni-createInnerAudioContext/utssdk/global.d.ts +4 -0
- package/types/uni/uts-plugin-api/lib/uni-createInnerAudioContext/utssdk/index.d.ts +2 -0
- package/types/uni/uts-plugin-api/lib/uni-createInnerAudioContext/utssdk/interface.d.ts +1226 -1726
- package/types/uni/uts-plugin-api/lib/uni-createIntersectionObserver/utssdk/interface.d.ts +1 -1
- package/types/uni/uts-plugin-api/lib/uni-createSelectorQuery/utssdk/interface.d.ts +102 -18
- package/types/uni/uts-plugin-api/lib/uni-createWebviewContext/utssdk/interface.d.ts +2 -2
- package/types/uni/uts-plugin-api/lib/uni-dialogPage/utssdk/interface.d.ts +1199 -1045
- package/types/uni/uts-plugin-api/lib/uni-event/utssdk/interface.d.ts +294 -263
- package/types/uni/uts-plugin-api/lib/uni-exit/utssdk/interface.d.ts +33 -28
- package/types/uni/uts-plugin-api/lib/uni-file/utssdk/interface.d.ts +210 -0
- package/types/uni/uts-plugin-api/lib/uni-fileSystemManager/utssdk/interface.d.ts +4828 -1750
- package/types/uni/uts-plugin-api/lib/uni-getAppAuthorizeSetting/utssdk/interface.d.ts +490 -448
- package/types/uni/uts-plugin-api/lib/uni-getAppBaseInfo/utssdk/interface.d.ts +2138 -829
- package/types/uni/uts-plugin-api/lib/uni-getBackgroundAudioManager/utssdk/global.d.ts +4 -0
- package/types/uni/uts-plugin-api/lib/uni-getBackgroundAudioManager/utssdk/index.d.ts +2 -0
- package/types/uni/uts-plugin-api/lib/uni-getBackgroundAudioManager/utssdk/interface.d.ts +664 -114
- package/types/uni/uts-plugin-api/lib/uni-getDeviceInfo/utssdk/interface.d.ts +891 -9
- package/types/uni/uts-plugin-api/lib/uni-getElementById/utssdk/interface.d.ts +3 -3
- package/types/uni/uts-plugin-api/lib/uni-getEnterOptionsSync/utssdk/interface.d.ts +254 -114
- package/types/uni/uts-plugin-api/lib/uni-getLaunchOptionsSync/utssdk/interface.d.ts +152 -12
- package/types/uni/uts-plugin-api/lib/uni-getLocation/utssdk/interface.d.ts +813 -57
- package/types/uni/uts-plugin-api/lib/uni-getLocation-tencent-uni1/utssdk/global.d.ts +0 -2
- package/types/uni/uts-plugin-api/lib/uni-getLocation-tencent-uni1/utssdk/interface.d.ts +0 -45
- package/types/uni/uts-plugin-api/lib/uni-getNetworkType/utssdk/interface.d.ts +274 -148
- package/types/uni/uts-plugin-api/lib/uni-getPerformance/utssdk/interface.d.ts +38 -3
- package/types/uni/uts-plugin-api/lib/uni-getRecorderManager/utssdk/interface.d.ts +969 -969
- package/types/uni/uts-plugin-api/lib/uni-getSystemInfo/utssdk/interface.d.ts +3161 -43
- package/types/uni/uts-plugin-api/lib/uni-getSystemSetting/utssdk/interface.d.ts +316 -22
- package/types/uni/uts-plugin-api/lib/uni-interceptor/utssdk/interface.d.ts +2 -2
- package/types/uni/uts-plugin-api/lib/uni-keyboard/utssdk/interface.d.ts +42 -0
- package/types/uni/uts-plugin-api/lib/uni-loadFontFace/utssdk/interface.d.ts +41 -41
- package/types/uni/uts-plugin-api/lib/uni-makePhoneCall/utssdk/interface.d.ts +88 -88
- package/types/uni/uts-plugin-api/lib/uni-media/utssdk/global.d.ts +8 -0
- package/types/uni/uts-plugin-api/lib/uni-media/utssdk/index.d.ts +4 -0
- package/types/uni/uts-plugin-api/lib/uni-media/utssdk/interface.d.ts +2765 -1193
- package/types/uni/uts-plugin-api/lib/uni-navigationBar/utssdk/interface.d.ts +18 -18
- package/types/uni/uts-plugin-api/lib/uni-network/utssdk/interface.d.ts +3098 -1153
- package/types/uni/uts-plugin-api/lib/uni-oauth/utssdk/interface.d.ts +13 -13
- package/types/uni/uts-plugin-api/lib/uni-openDocument/utssdk/interface.d.ts +42 -0
- package/types/uni/uts-plugin-api/lib/uni-pageScrollTo/utssdk/interface.d.ts +10 -10
- package/types/uni/uts-plugin-api/lib/uni-payment/utssdk/interface.d.ts +621 -369
- package/types/uni/uts-plugin-api/lib/uni-payment-huawei/utssdk/global.d.ts +8 -0
- package/types/uni/uts-plugin-api/lib/uni-payment-huawei/utssdk/index.d.ts +4 -0
- package/types/uni/uts-plugin-api/lib/uni-payment-huawei/utssdk/interface.d.ts +1 -0
- package/types/uni/uts-plugin-api/lib/uni-privacy/utssdk/interface.d.ts +540 -253
- package/types/uni/uts-plugin-api/lib/uni-prompt/utssdk/interface.d.ts +2602 -1131
- package/types/uni/uts-plugin-api/lib/uni-pullDownRefresh/utssdk/interface.d.ts +2 -2
- package/types/uni/uts-plugin-api/lib/uni-route/utssdk/interface.d.ts +58 -58
- package/types/uni/uts-plugin-api/lib/uni-rpx2px/utssdk/interface.d.ts +77 -35
- package/types/uni/uts-plugin-api/lib/uni-scanCode/utssdk/interface.d.ts +42 -0
- package/types/uni/uts-plugin-api/lib/uni-shareWithSystem/utssdk/global.d.ts +4 -0
- package/types/uni/uts-plugin-api/lib/uni-shareWithSystem/utssdk/index.d.ts +2 -0
- package/types/uni/uts-plugin-api/lib/uni-shareWithSystem/utssdk/interface.d.ts +614 -15
- package/types/uni/uts-plugin-api/lib/uni-storage/utssdk/interface.d.ts +857 -437
- package/types/uni/uts-plugin-api/lib/uni-tabBar/utssdk/interface.d.ts +58 -16
- package/types/uni/uts-plugin-api/lib/uni-theme/utssdk/global.d.ts +8 -0
- package/types/uni/uts-plugin-api/lib/uni-theme/utssdk/index.d.ts +4 -0
- package/types/uni/uts-plugin-api/lib/uni-theme/utssdk/interface.d.ts +1057 -516
- package/types/uni/uts-plugin-api/lib/uni-virtualPayment/utssdk/interface.d.ts +1656 -1488
- package/types/uni/uts-plugin-api/lib/uni-websocket/utssdk/interface.d.ts +1752 -786
- package/types/uni/uts-plugin-biz/global.d.ts +1 -0
- package/types/uni/uts-plugin-biz/index.d.ts +1 -0
- package/types/uni/uts-plugin-biz/lib/uni-ad/utssdk/interface.d.ts +85 -1
- package/types/uni/{uts-plugin-api → uts-plugin-biz}/lib/uni-crash/utssdk/interface.d.ts +46 -46
- package/types/uni/uts-plugin-biz/lib/uni-map-tencent/utssdk/interface.d.ts +72 -20
- package/types/uni/uts-plugin-biz/lib/uni-push/utssdk/interface.d.ts +126 -0
- package/types/uni/uts-plugin-biz/lib/uni-verify/utssdk/global.d.ts +4 -0
- package/types/uni/uts-plugin-biz/lib/uni-verify/utssdk/index.d.ts +2 -0
- package/types/uni/uts-plugin-biz/lib/uni-verify/utssdk/interface.d.ts +98 -15
- package/types/uni/uts-plugin-component/lib/uni-video/utssdk/interface.d.ts +677 -299
- package/types/uni/uts-plugin-extend/README.md +3 -0
- package/types/uni/uts-plugin-extend/global.d.ts +1 -0
- package/types/uni/uts-plugin-extend/lib/uni-__f__/utssdk/global.d.ts +7 -0
- package/types/uni/uts-plugin-extend/lib/uni-__f__/utssdk/index.d.ts +0 -0
- package/types/uni/uts-plugin-extend/lib/uni-__f__/utssdk/interface.d.ts +3 -0
- package/types/uni/uts-plugin-extend/lib/uni-accelerometer/utssdk/interface.d.ts +4 -4
- package/types/uni/uts-plugin-extend/lib/uni-canvas/utssdk/interface.d.ts +5 -5
- package/types/uni/uts-plugin-extend/lib/uni-compass/utssdk/interface.d.ts +302 -302
- package/types/uni/uts-plugin-extend/lib/uni-createMediaQueryObserver/utssdk/interface.d.ts +77 -77
- package/types/uni/uts-plugin-extend/lib/uni-getBackgroundAudioManager/utssdk/interface.d.ts +431 -11
- package/types/uni/uts-plugin-extend/lib/uni-locale/utssdk/interface.d.ts +3 -3
- package/types/uni/uts-plugin-extend/lib/uni-localeChange/utssdk/interface.d.ts +6 -6
- package/types/uni/uts-plugin-extend/lib/uni-memory/utssdk/interface.d.ts +2 -2
- package/types/uni/uts-plugin-extend/lib/uni-openLocation/utssdk/interface.d.ts +73 -73
- package/types/uni-cloud/interface.d.ts +91 -0
- package/uts-plugin.d.ts +3 -1
- package/types/uni/uts-plugin-extend/lib/uni-chooseLocation/utssdk/interface.d.ts +0 -151
- package/types/uni/uts-plugin-extend/lib/uni-createInnerAudioContext/utssdk/global.d.ts +0 -11
- package/types/uni/uts-plugin-extend/lib/uni-createInnerAudioContext/utssdk/index.d.ts +0 -4
- package/types/uni/uts-plugin-extend/lib/uni-createInnerAudioContext/utssdk/interface.d.ts +0 -224
- package/types/uni/uts-plugin-extend/lib/uni-createMapContext/utssdk/global.d.ts +0 -53
- package/types/uni/uts-plugin-extend/lib/uni-createMapContext/utssdk/index.d.ts +0 -25
- package/types/uni/uts-plugin-extend/lib/uni-createMapContext/utssdk/interface.d.ts +0 -487
- package/types/uni/uts-plugin-extend/lib/uni-theme/utssdk/global.d.ts +0 -9
- package/types/uni/uts-plugin-extend/lib/uni-theme/utssdk/index.d.ts +0 -1
- package/types/uni/uts-plugin-extend/lib/uni-theme/utssdk/interface.d.ts +0 -165
- /package/types/uni/{uts-plugin-api → uts-plugin-biz}/lib/uni-crash/utssdk/global.d.ts +0 -0
- /package/types/uni/{uts-plugin-api → uts-plugin-biz}/lib/uni-crash/utssdk/index.d.ts +0 -0
|
@@ -21,26 +21,26 @@ export type SetStorageCompleteCallback = (res: any) => void
|
|
|
21
21
|
* uni.setStorage参数定义
|
|
22
22
|
*/
|
|
23
23
|
export type SetStorageOptions = {
|
|
24
|
-
|
|
25
|
-
|
|
26
|
-
|
|
27
|
-
|
|
28
|
-
|
|
29
|
-
|
|
30
|
-
|
|
31
|
-
|
|
32
|
-
|
|
33
|
-
|
|
34
|
-
|
|
35
|
-
|
|
36
|
-
|
|
37
|
-
|
|
38
|
-
|
|
39
|
-
|
|
40
|
-
|
|
41
|
-
|
|
42
|
-
|
|
43
|
-
|
|
24
|
+
/**
|
|
25
|
+
* 本地存储中的指定的 key
|
|
26
|
+
*/
|
|
27
|
+
key: string,
|
|
28
|
+
/**
|
|
29
|
+
* 需要存储的内容,只支持能通过 JSON.stringify 序列化的对象
|
|
30
|
+
*/
|
|
31
|
+
data: any,
|
|
32
|
+
/**
|
|
33
|
+
* 接口调用成功的回调函数
|
|
34
|
+
*/
|
|
35
|
+
success?: SetStorageSuccessCallback | null,
|
|
36
|
+
/**
|
|
37
|
+
* 接口调用失败的回调函数
|
|
38
|
+
*/
|
|
39
|
+
fail?: SetStorageFailCallback | null,
|
|
40
|
+
/**
|
|
41
|
+
* 接口调用结束的回调函数(调用成功、失败都会执行)
|
|
42
|
+
*/
|
|
43
|
+
complete?: SetStorageCompleteCallback | null
|
|
44
44
|
}
|
|
45
45
|
|
|
46
46
|
export type SetStorage = (options: SetStorageOptions) => void
|
|
@@ -52,10 +52,10 @@ export type SetStorageSync = (key: string, data: any) => void
|
|
|
52
52
|
* uni.getStorage成功回调参数
|
|
53
53
|
*/
|
|
54
54
|
export type GetStorageSuccess = {
|
|
55
|
-
|
|
56
|
-
|
|
57
|
-
|
|
58
|
-
|
|
55
|
+
/**
|
|
56
|
+
* key 对应的内容
|
|
57
|
+
*/
|
|
58
|
+
data: any | null
|
|
59
59
|
}
|
|
60
60
|
|
|
61
61
|
/**
|
|
@@ -74,22 +74,22 @@ export type GetStorageCompleteCallback = (res: any) => void
|
|
|
74
74
|
* uni.getStorage参数定义
|
|
75
75
|
*/
|
|
76
76
|
export type GetStorageOptions = {
|
|
77
|
-
|
|
78
|
-
|
|
79
|
-
|
|
80
|
-
|
|
81
|
-
|
|
82
|
-
|
|
83
|
-
|
|
84
|
-
|
|
85
|
-
|
|
86
|
-
|
|
87
|
-
|
|
88
|
-
|
|
89
|
-
|
|
90
|
-
|
|
91
|
-
|
|
92
|
-
|
|
77
|
+
/**
|
|
78
|
+
* 本地存储中的指定的 key
|
|
79
|
+
*/
|
|
80
|
+
key: string,
|
|
81
|
+
/**
|
|
82
|
+
* 接口调用成功的回调函数
|
|
83
|
+
*/
|
|
84
|
+
success?: GetStorageSuccessCallback | null,
|
|
85
|
+
/**
|
|
86
|
+
* 接口调用失败的回调函数
|
|
87
|
+
*/
|
|
88
|
+
fail?: GetStorageFailCallback | null,
|
|
89
|
+
/**
|
|
90
|
+
* 接口调用结束的回调函数(调用成功、失败都会执行)
|
|
91
|
+
*/
|
|
92
|
+
complete?: GetStorageCompleteCallback | null
|
|
93
93
|
}
|
|
94
94
|
|
|
95
95
|
|
|
@@ -103,18 +103,18 @@ export type GetStorageSync = (key: string) => any | null
|
|
|
103
103
|
* uni.getStorageInfo成功回调参数
|
|
104
104
|
*/
|
|
105
105
|
export type GetStorageInfoSuccess = {
|
|
106
|
-
|
|
107
|
-
|
|
108
|
-
|
|
109
|
-
|
|
110
|
-
|
|
111
|
-
|
|
112
|
-
|
|
113
|
-
|
|
114
|
-
|
|
115
|
-
|
|
116
|
-
|
|
117
|
-
|
|
106
|
+
/**
|
|
107
|
+
* 当前 storage 中所有的 key
|
|
108
|
+
*/
|
|
109
|
+
keys: Array<string>,
|
|
110
|
+
/**
|
|
111
|
+
* 当前占用的空间大小, 单位:kb
|
|
112
|
+
*/
|
|
113
|
+
currentSize: number,
|
|
114
|
+
/**
|
|
115
|
+
* 限制的空间大小, 单位:kb
|
|
116
|
+
*/
|
|
117
|
+
limitSize: number,
|
|
118
118
|
}
|
|
119
119
|
|
|
120
120
|
/**
|
|
@@ -133,18 +133,18 @@ export type GetStorageInfoCompleteCallback = (res: any) => void
|
|
|
133
133
|
* uni.getStorageInfo参数定义
|
|
134
134
|
*/
|
|
135
135
|
export type GetStorageInfoOptions = {
|
|
136
|
-
|
|
137
|
-
|
|
138
|
-
|
|
139
|
-
|
|
140
|
-
|
|
141
|
-
|
|
142
|
-
|
|
143
|
-
|
|
144
|
-
|
|
145
|
-
|
|
146
|
-
|
|
147
|
-
|
|
136
|
+
/**
|
|
137
|
+
* 接口调用成功的回调函数
|
|
138
|
+
*/
|
|
139
|
+
success?: GetStorageInfoSuccessCallback | null,
|
|
140
|
+
/**
|
|
141
|
+
* 接口调用失败的回调函数
|
|
142
|
+
*/
|
|
143
|
+
fail?: GetStorageInfoFailCallback | null,
|
|
144
|
+
/**
|
|
145
|
+
* 接口调用结束的回调函数(调用成功、失败都会执行)
|
|
146
|
+
*/
|
|
147
|
+
complete?: GetStorageInfoCompleteCallback | null
|
|
148
148
|
}
|
|
149
149
|
|
|
150
150
|
|
|
@@ -174,22 +174,22 @@ export type RemoveStorageCompleteCallback = (res: any) => void
|
|
|
174
174
|
* uni.removeStorage参数定义
|
|
175
175
|
*/
|
|
176
176
|
export type RemoveStorageOptions = {
|
|
177
|
-
|
|
178
|
-
|
|
179
|
-
|
|
180
|
-
|
|
181
|
-
|
|
182
|
-
|
|
183
|
-
|
|
184
|
-
|
|
185
|
-
|
|
186
|
-
|
|
187
|
-
|
|
188
|
-
|
|
189
|
-
|
|
190
|
-
|
|
191
|
-
|
|
192
|
-
|
|
177
|
+
/**
|
|
178
|
+
* 本地存储中的指定的 key
|
|
179
|
+
*/
|
|
180
|
+
key: string,
|
|
181
|
+
/**
|
|
182
|
+
* 接口调用的回调函数
|
|
183
|
+
*/
|
|
184
|
+
success?: RemoveStorageSuccessCallback | null,
|
|
185
|
+
/**
|
|
186
|
+
* 接口调用失败的回调函数
|
|
187
|
+
*/
|
|
188
|
+
fail?: RemoveStorageFailCallback | null,
|
|
189
|
+
/**
|
|
190
|
+
* 接口调用结束的回调函数(调用成功、失败都会执行)
|
|
191
|
+
*/
|
|
192
|
+
complete?: RemoveStorageCompleteCallback | null
|
|
193
193
|
}
|
|
194
194
|
|
|
195
195
|
|
|
@@ -222,18 +222,18 @@ export type ClearStorageCompleteCallback = (res: any) => void
|
|
|
222
222
|
* uni.removeStorage参数定义
|
|
223
223
|
*/
|
|
224
224
|
export type ClearStorageOptions = {
|
|
225
|
-
|
|
226
|
-
|
|
227
|
-
|
|
228
|
-
|
|
229
|
-
|
|
230
|
-
|
|
231
|
-
|
|
232
|
-
|
|
233
|
-
|
|
234
|
-
|
|
235
|
-
|
|
236
|
-
|
|
225
|
+
/**
|
|
226
|
+
* 接口调用的回调函数
|
|
227
|
+
*/
|
|
228
|
+
success?: ClearStorageSuccessCallback | null,
|
|
229
|
+
/**
|
|
230
|
+
* 接口调用失败的回调函数
|
|
231
|
+
*/
|
|
232
|
+
fail?: ClearStorageFailCallback | null,
|
|
233
|
+
/**
|
|
234
|
+
* 接口调用结束的回调函数(调用成功、失败都会执行)
|
|
235
|
+
*/
|
|
236
|
+
complete?: ClearStorageCompleteCallback | null
|
|
237
237
|
}
|
|
238
238
|
|
|
239
239
|
export type ClearStorage = (option?: ClearStorageOptions | null) => void
|
|
@@ -242,359 +242,779 @@ export type ClearStorage = (option?: ClearStorageOptions | null) => void
|
|
|
242
242
|
export type ClearStorageSync = () => void
|
|
243
243
|
|
|
244
244
|
export interface Uni {
|
|
245
|
-
|
|
246
|
-
|
|
247
|
-
|
|
248
|
-
|
|
249
|
-
|
|
250
|
-
|
|
251
|
-
|
|
252
|
-
|
|
253
|
-
|
|
254
|
-
|
|
255
|
-
|
|
256
|
-
|
|
257
|
-
|
|
258
|
-
|
|
259
|
-
|
|
260
|
-
|
|
261
|
-
|
|
262
|
-
|
|
263
|
-
|
|
264
|
-
|
|
265
|
-
|
|
266
|
-
|
|
267
|
-
|
|
268
|
-
|
|
245
|
+
/**
|
|
246
|
+
* uni.setStorage函数定义
|
|
247
|
+
* 将数据存储在本地storage存储中指定的 key 中,会覆盖掉原来该 key 对应的内容,这是一个异步接口。
|
|
248
|
+
*
|
|
249
|
+
* @param {SetStorageOptions} options
|
|
250
|
+
* @tutorial-uni-app https://uniapp.dcloud.net.cn/api/storage/storage.html#setstorage
|
|
251
|
+
* @tutorial-uni-app-x https://doc.dcloud.net.cn/uni-app-x/api/storage.html#setstorage
|
|
252
|
+
* @tutorial https://doc.dcloud.net.cn/uni-app-x/api/storage.html#setstorage
|
|
253
|
+
* @uniPlatform {
|
|
254
|
+
* "app": {
|
|
255
|
+
* "android": {
|
|
256
|
+
* "osVer": "5.0",
|
|
257
|
+
* "uniVer": "2.0.3",
|
|
258
|
+
* "unixVer": "3.9.0"
|
|
259
|
+
* },
|
|
260
|
+
* "ios": {
|
|
261
|
+
* "osVer": "12.0",
|
|
262
|
+
* "uniVer": "2.0.3",
|
|
263
|
+
* "unixVer": "4.11"
|
|
264
|
+
* },
|
|
265
|
+
* "harmony": {
|
|
266
|
+
* "osVer": "3.0",
|
|
267
|
+
* "uniVer": "4.23",
|
|
268
|
+
* "unixVer": "x"
|
|
269
|
+
* }
|
|
270
|
+
* },
|
|
271
|
+
* "mp": {
|
|
272
|
+
* "weixin": {
|
|
273
|
+
* "hostVer": "√",
|
|
274
|
+
* "uniVer": "√",
|
|
275
|
+
* "unixVer": "4.41"
|
|
276
|
+
* },
|
|
277
|
+
* "alipay": {
|
|
278
|
+
* "hostVer": "√",
|
|
279
|
+
* "uniVer": "√",
|
|
280
|
+
* "unixVer": "x"
|
|
281
|
+
* },
|
|
282
|
+
* "baidu": {
|
|
283
|
+
* "hostVer": "√",
|
|
284
|
+
* "uniVer": "√",
|
|
285
|
+
* "unixVer": "x"
|
|
286
|
+
* },
|
|
287
|
+
* "toutiao": {
|
|
288
|
+
* "hostVer": "√",
|
|
289
|
+
* "uniVer": "√",
|
|
290
|
+
* "unixVer": "x"
|
|
291
|
+
* },
|
|
292
|
+
* "lark": {
|
|
293
|
+
* "hostVer": "√",
|
|
294
|
+
* "uniVer": "√",
|
|
295
|
+
* "unixVer": "x"
|
|
296
|
+
* },
|
|
297
|
+
* "qq": {
|
|
298
|
+
* "hostVer": "√",
|
|
299
|
+
* "uniVer": "√",
|
|
300
|
+
* "unixVer": "x"
|
|
301
|
+
* },
|
|
302
|
+
* "kuaishou": {
|
|
303
|
+
* "hostVer": "√",
|
|
304
|
+
* "uniVer": "√",
|
|
305
|
+
* "unixVer": "x"
|
|
306
|
+
* },
|
|
307
|
+
* "jd": {
|
|
308
|
+
* "hostVer": "√",
|
|
309
|
+
* "uniVer": "√",
|
|
310
|
+
* "unixVer": "x"
|
|
311
|
+
* }
|
|
312
|
+
* },
|
|
313
|
+
* "web": {
|
|
314
|
+
* "uniVer": "√",
|
|
315
|
+
* "unixVer": "4.0"
|
|
269
316
|
* }
|
|
270
|
-
|
|
271
|
-
|
|
272
|
-
|
|
273
|
-
|
|
274
|
-
|
|
275
|
-
|
|
276
|
-
|
|
277
|
-
|
|
278
|
-
|
|
279
|
-
|
|
280
|
-
|
|
281
|
-
|
|
282
|
-
|
|
283
|
-
|
|
284
|
-
|
|
285
|
-
|
|
286
|
-
|
|
287
|
-
|
|
288
|
-
|
|
289
|
-
|
|
290
|
-
|
|
291
|
-
|
|
292
|
-
|
|
293
|
-
|
|
294
|
-
|
|
295
|
-
|
|
296
|
-
|
|
297
|
-
|
|
298
|
-
|
|
299
|
-
|
|
300
|
-
|
|
301
|
-
*
|
|
302
|
-
|
|
303
|
-
|
|
304
|
-
|
|
317
|
+
* }
|
|
318
|
+
* @uniVersion 2.0.3
|
|
319
|
+
* @uniVueVersion 2,3 //支持的vue版本
|
|
320
|
+
*/
|
|
321
|
+
setStorage(options: SetStorageOptions): void,
|
|
322
|
+
/**
|
|
323
|
+
* uni.setStorageSync函数定义
|
|
324
|
+
* 将 data 存储在本地storage存储中指定的 key 中,会覆盖掉原来该 key 对应的内容,这是一个同步接口。
|
|
325
|
+
*
|
|
326
|
+
* @param {string} key 本地storage存储中的指定的 key
|
|
327
|
+
* @param {any} data 需要存储的内容,只支持能通过 JSON.stringify 序列化的对象
|
|
328
|
+
* @tutorial-uni-app https://uniapp.dcloud.net.cn/api/storage/storage.html#setstoragesync
|
|
329
|
+
* @tutorial-uni-app-x https://doc.dcloud.net.cn/uni-app-x/api/storage.html#setstoragesync
|
|
330
|
+
* @tutorial https://doc.dcloud.net.cn/uni-app-x/api/storage.html#setstoragesync
|
|
331
|
+
* @uniPlatform {
|
|
332
|
+
* "app": {
|
|
333
|
+
* "android": {
|
|
334
|
+
* "osVer": "5.0",
|
|
335
|
+
* "uniVer": "2.0.3",
|
|
336
|
+
* "unixVer": "3.9.0"
|
|
337
|
+
* },
|
|
338
|
+
* "ios": {
|
|
339
|
+
* "osVer": "12.0",
|
|
340
|
+
* "uniVer": "2.0.3",
|
|
341
|
+
* "unixVer": "4.11"
|
|
342
|
+
* },
|
|
343
|
+
* "harmony": {
|
|
344
|
+
* "osVer": "3.0",
|
|
345
|
+
* "uniVer": "4.23",
|
|
346
|
+
* "unixVer": "x"
|
|
347
|
+
* }
|
|
348
|
+
* },
|
|
349
|
+
* "mp": {
|
|
350
|
+
* "weixin": {
|
|
351
|
+
* "hostVer": "√",
|
|
352
|
+
* "uniVer": "√",
|
|
353
|
+
* "unixVer": "4.41"
|
|
354
|
+
* },
|
|
355
|
+
* "alipay": {
|
|
356
|
+
* "hostVer": "√",
|
|
357
|
+
* "uniVer": "√",
|
|
358
|
+
* "unixVer": "x"
|
|
359
|
+
* },
|
|
360
|
+
* "baidu": {
|
|
361
|
+
* "hostVer": "√",
|
|
362
|
+
* "uniVer": "√",
|
|
363
|
+
* "unixVer": "x"
|
|
364
|
+
* },
|
|
365
|
+
* "toutiao": {
|
|
366
|
+
* "hostVer": "√",
|
|
367
|
+
* "uniVer": "√",
|
|
368
|
+
* "unixVer": "x"
|
|
369
|
+
* },
|
|
370
|
+
* "lark": {
|
|
371
|
+
* "hostVer": "√",
|
|
372
|
+
* "uniVer": "√",
|
|
373
|
+
* "unixVer": "x"
|
|
374
|
+
* },
|
|
375
|
+
* "qq": {
|
|
376
|
+
* "hostVer": "√",
|
|
377
|
+
* "uniVer": "√",
|
|
378
|
+
* "unixVer": "x"
|
|
379
|
+
* },
|
|
380
|
+
* "kuaishou": {
|
|
381
|
+
* "hostVer": "√",
|
|
382
|
+
* "uniVer": "√",
|
|
383
|
+
* "unixVer": "x"
|
|
384
|
+
* },
|
|
385
|
+
* "jd": {
|
|
386
|
+
* "hostVer": "√",
|
|
387
|
+
* "uniVer": "√",
|
|
388
|
+
* "unixVer": "x"
|
|
389
|
+
* }
|
|
390
|
+
* },
|
|
391
|
+
* "web": {
|
|
392
|
+
* "uniVer": "√",
|
|
393
|
+
* "unixVer": "4.0"
|
|
305
394
|
* }
|
|
306
|
-
|
|
307
|
-
|
|
308
|
-
|
|
309
|
-
|
|
310
|
-
|
|
311
|
-
|
|
312
|
-
|
|
313
|
-
|
|
314
|
-
|
|
315
|
-
|
|
316
|
-
|
|
317
|
-
|
|
318
|
-
|
|
319
|
-
|
|
320
|
-
|
|
321
|
-
|
|
322
|
-
|
|
323
|
-
|
|
324
|
-
|
|
325
|
-
|
|
326
|
-
|
|
327
|
-
|
|
328
|
-
|
|
329
|
-
|
|
330
|
-
|
|
331
|
-
|
|
332
|
-
|
|
333
|
-
|
|
334
|
-
|
|
335
|
-
|
|
336
|
-
*
|
|
337
|
-
|
|
338
|
-
|
|
339
|
-
|
|
395
|
+
* }
|
|
396
|
+
* @uniVersion 2.0.3
|
|
397
|
+
* @uniVueVersion 2,3 //支持的vue版本
|
|
398
|
+
*/
|
|
399
|
+
setStorageSync(key: string, data: any): void,
|
|
400
|
+
/**
|
|
401
|
+
* uni.getStorage函数定义
|
|
402
|
+
* 从本地存储中异步获取指定 key 对应的内容。
|
|
403
|
+
*
|
|
404
|
+
* @param {GetStorageOptions} options
|
|
405
|
+
* @tutorial-uni-app https://uniapp.dcloud.net.cn/api/storage/storage.html#getstorage
|
|
406
|
+
* @tutorial-uni-app-x https://doc.dcloud.net.cn/uni-app-x/api/storage.html#getstorage
|
|
407
|
+
* @tutorial https://doc.dcloud.net.cn/uni-app-x/api/storage.html#getstorage
|
|
408
|
+
* @uniPlatform {
|
|
409
|
+
* "app": {
|
|
410
|
+
* "android": {
|
|
411
|
+
* "osVer": "5.0",
|
|
412
|
+
* "uniVer": "2.0.3",
|
|
413
|
+
* "unixVer": "3.9.0"
|
|
414
|
+
* },
|
|
415
|
+
* "ios": {
|
|
416
|
+
* "osVer": "12.0",
|
|
417
|
+
* "uniVer": "2.0.3",
|
|
418
|
+
* "unixVer": "4.11"
|
|
419
|
+
* },
|
|
420
|
+
* "harmony": {
|
|
421
|
+
* "osVer": "3.0",
|
|
422
|
+
* "uniVer": "4.23",
|
|
423
|
+
* "unixVer": "x"
|
|
424
|
+
* }
|
|
425
|
+
* },
|
|
426
|
+
* "mp": {
|
|
427
|
+
* "weixin": {
|
|
428
|
+
* "hostVer": "√",
|
|
429
|
+
* "uniVer": "√",
|
|
430
|
+
* "unixVer": "4.41"
|
|
431
|
+
* },
|
|
432
|
+
* "alipay": {
|
|
433
|
+
* "hostVer": "√",
|
|
434
|
+
* "uniVer": "√",
|
|
435
|
+
* "unixVer": "x"
|
|
436
|
+
* },
|
|
437
|
+
* "baidu": {
|
|
438
|
+
* "hostVer": "√",
|
|
439
|
+
* "uniVer": "√",
|
|
440
|
+
* "unixVer": "x"
|
|
441
|
+
* },
|
|
442
|
+
* "toutiao": {
|
|
443
|
+
* "hostVer": "√",
|
|
444
|
+
* "uniVer": "√",
|
|
445
|
+
* "unixVer": "x"
|
|
446
|
+
* },
|
|
447
|
+
* "lark": {
|
|
448
|
+
* "hostVer": "√",
|
|
449
|
+
* "uniVer": "√",
|
|
450
|
+
* "unixVer": "x"
|
|
451
|
+
* },
|
|
452
|
+
* "qq": {
|
|
453
|
+
* "hostVer": "√",
|
|
454
|
+
* "uniVer": "√",
|
|
455
|
+
* "unixVer": "x"
|
|
456
|
+
* },
|
|
457
|
+
* "kuaishou": {
|
|
458
|
+
* "hostVer": "√",
|
|
459
|
+
* "uniVer": "√",
|
|
460
|
+
* "unixVer": "x"
|
|
461
|
+
* },
|
|
462
|
+
* "jd": {
|
|
463
|
+
* "hostVer": "√",
|
|
464
|
+
* "uniVer": "√",
|
|
465
|
+
* "unixVer": "x"
|
|
466
|
+
* }
|
|
467
|
+
* },
|
|
468
|
+
* "web": {
|
|
469
|
+
* "uniVer": "√",
|
|
470
|
+
* "unixVer": "4.0"
|
|
340
471
|
* }
|
|
341
|
-
|
|
342
|
-
|
|
343
|
-
|
|
344
|
-
|
|
345
|
-
|
|
346
|
-
|
|
347
|
-
|
|
348
|
-
|
|
349
|
-
|
|
350
|
-
|
|
351
|
-
|
|
352
|
-
|
|
353
|
-
|
|
354
|
-
|
|
355
|
-
|
|
356
|
-
|
|
357
|
-
|
|
358
|
-
|
|
359
|
-
|
|
360
|
-
|
|
361
|
-
|
|
362
|
-
|
|
363
|
-
|
|
364
|
-
|
|
365
|
-
|
|
366
|
-
|
|
367
|
-
|
|
368
|
-
|
|
369
|
-
|
|
370
|
-
|
|
371
|
-
*
|
|
372
|
-
|
|
373
|
-
|
|
374
|
-
|
|
472
|
+
* }
|
|
473
|
+
* @uniVersion 2.0.3
|
|
474
|
+
* @uniVueVersion 2,3 //支持的vue版本
|
|
475
|
+
*/
|
|
476
|
+
getStorage(options: GetStorageOptions): void,
|
|
477
|
+
/**
|
|
478
|
+
* uni.getStorageSync函数定义
|
|
479
|
+
* 从本地存储中同步获取指定 key 对应的内容。
|
|
480
|
+
*
|
|
481
|
+
* @param {string} key 本地存储中的指定的 key
|
|
482
|
+
* @tutorial-uni-app https://uniapp.dcloud.net.cn/api/storage/storage.html#getstoragesync
|
|
483
|
+
* @tutorial-uni-app-x https://doc.dcloud.net.cn/uni-app-x/api/storage.html#getstoragesync
|
|
484
|
+
* @tutorial https://doc.dcloud.net.cn/uni-app-x/api/storage.html#getstoragesync
|
|
485
|
+
* @uniPlatform {
|
|
486
|
+
* "app": {
|
|
487
|
+
* "android": {
|
|
488
|
+
* "osVer": "5.0",
|
|
489
|
+
* "uniVer": "2.0.3",
|
|
490
|
+
* "unixVer": "3.9.0"
|
|
491
|
+
* },
|
|
492
|
+
* "ios": {
|
|
493
|
+
* "osVer": "12.0",
|
|
494
|
+
* "uniVer": "2.0.3",
|
|
495
|
+
* "unixVer": "4.11"
|
|
496
|
+
* },
|
|
497
|
+
* "harmony": {
|
|
498
|
+
* "osVer": "3.0",
|
|
499
|
+
* "uniVer": "4.23",
|
|
500
|
+
* "unixVer": "x"
|
|
501
|
+
* }
|
|
502
|
+
* },
|
|
503
|
+
* "mp": {
|
|
504
|
+
* "weixin": {
|
|
505
|
+
* "hostVer": "√",
|
|
506
|
+
* "uniVer": "√",
|
|
507
|
+
* "unixVer": "4.41"
|
|
508
|
+
* },
|
|
509
|
+
* "alipay": {
|
|
510
|
+
* "hostVer": "√",
|
|
511
|
+
* "uniVer": "√",
|
|
512
|
+
* "unixVer": "x"
|
|
513
|
+
* },
|
|
514
|
+
* "baidu": {
|
|
515
|
+
* "hostVer": "√",
|
|
516
|
+
* "uniVer": "√",
|
|
517
|
+
* "unixVer": "x"
|
|
518
|
+
* },
|
|
519
|
+
* "toutiao": {
|
|
520
|
+
* "hostVer": "√",
|
|
521
|
+
* "uniVer": "√",
|
|
522
|
+
* "unixVer": "x"
|
|
523
|
+
* },
|
|
524
|
+
* "lark": {
|
|
525
|
+
* "hostVer": "√",
|
|
526
|
+
* "uniVer": "√",
|
|
527
|
+
* "unixVer": "x"
|
|
528
|
+
* },
|
|
529
|
+
* "qq": {
|
|
530
|
+
* "hostVer": "√",
|
|
531
|
+
* "uniVer": "√",
|
|
532
|
+
* "unixVer": "x"
|
|
533
|
+
* },
|
|
534
|
+
* "kuaishou": {
|
|
535
|
+
* "hostVer": "√",
|
|
536
|
+
* "uniVer": "√",
|
|
537
|
+
* "unixVer": "x"
|
|
538
|
+
* },
|
|
539
|
+
* "jd": {
|
|
540
|
+
* "hostVer": "√",
|
|
541
|
+
* "uniVer": "√",
|
|
542
|
+
* "unixVer": "x"
|
|
543
|
+
* }
|
|
544
|
+
* },
|
|
545
|
+
* "web": {
|
|
546
|
+
* "uniVer": "√",
|
|
547
|
+
* "unixVer": "4.0"
|
|
375
548
|
* }
|
|
376
|
-
|
|
377
|
-
|
|
378
|
-
|
|
379
|
-
|
|
380
|
-
|
|
381
|
-
|
|
382
|
-
|
|
383
|
-
|
|
384
|
-
|
|
385
|
-
|
|
386
|
-
|
|
387
|
-
|
|
388
|
-
|
|
389
|
-
|
|
390
|
-
|
|
391
|
-
|
|
392
|
-
|
|
393
|
-
|
|
394
|
-
|
|
395
|
-
|
|
396
|
-
|
|
397
|
-
|
|
398
|
-
|
|
399
|
-
|
|
400
|
-
|
|
401
|
-
|
|
402
|
-
|
|
403
|
-
|
|
404
|
-
|
|
405
|
-
|
|
406
|
-
*
|
|
407
|
-
|
|
408
|
-
|
|
409
|
-
|
|
549
|
+
* }
|
|
550
|
+
* @uniVersion 2.0.3
|
|
551
|
+
* @uniVueVersion 2,3 //支持的vue版本
|
|
552
|
+
*/
|
|
553
|
+
getStorageSync(key: string): any | null,
|
|
554
|
+
/**
|
|
555
|
+
* uni.getStorageInfo函数定义
|
|
556
|
+
* 异步获取当前 storage 的相关信息。
|
|
557
|
+
*
|
|
558
|
+
* @param {GetStorageInfoOptions} options
|
|
559
|
+
* @tutorial-uni-app https://uniapp.dcloud.net.cn/api/storage/storage.html#getstorageinfo
|
|
560
|
+
* @tutorial-uni-app-x https://doc.dcloud.net.cn/uni-app-x/api/storage.html#getstorageinfo
|
|
561
|
+
* @tutorial https://doc.dcloud.net.cn/uni-app-x/api/storage.html#getstorageinfo
|
|
562
|
+
* @uniPlatform {
|
|
563
|
+
* "app": {
|
|
564
|
+
* "android": {
|
|
565
|
+
* "osVer": "5.0",
|
|
566
|
+
* "uniVer": "2.0.3",
|
|
567
|
+
* "unixVer": "3.9.0"
|
|
568
|
+
* },
|
|
569
|
+
* "ios": {
|
|
570
|
+
* "osVer": "12.0",
|
|
571
|
+
* "uniVer": "2.0.3",
|
|
572
|
+
* "unixVer": "4.11"
|
|
573
|
+
* },
|
|
574
|
+
* "harmony": {
|
|
575
|
+
* "osVer": "3.0",
|
|
576
|
+
* "uniVer": "4.23",
|
|
577
|
+
* "unixVer": "x"
|
|
578
|
+
* }
|
|
579
|
+
* },
|
|
580
|
+
* "mp": {
|
|
581
|
+
* "weixin": {
|
|
582
|
+
* "hostVer": "√",
|
|
583
|
+
* "uniVer": "√",
|
|
584
|
+
* "unixVer": "4.41"
|
|
585
|
+
* },
|
|
586
|
+
* "alipay": {
|
|
587
|
+
* "hostVer": "√",
|
|
588
|
+
* "uniVer": "√",
|
|
589
|
+
* "unixVer": "x"
|
|
590
|
+
* },
|
|
591
|
+
* "baidu": {
|
|
592
|
+
* "hostVer": "√",
|
|
593
|
+
* "uniVer": "√",
|
|
594
|
+
* "unixVer": "x"
|
|
595
|
+
* },
|
|
596
|
+
* "toutiao": {
|
|
597
|
+
* "hostVer": "√",
|
|
598
|
+
* "uniVer": "√",
|
|
599
|
+
* "unixVer": "x"
|
|
600
|
+
* },
|
|
601
|
+
* "lark": {
|
|
602
|
+
* "hostVer": "√",
|
|
603
|
+
* "uniVer": "√",
|
|
604
|
+
* "unixVer": "x"
|
|
605
|
+
* },
|
|
606
|
+
* "qq": {
|
|
607
|
+
* "hostVer": "√",
|
|
608
|
+
* "uniVer": "√",
|
|
609
|
+
* "unixVer": "x"
|
|
610
|
+
* },
|
|
611
|
+
* "kuaishou": {
|
|
612
|
+
* "hostVer": "√",
|
|
613
|
+
* "uniVer": "√",
|
|
614
|
+
* "unixVer": "x"
|
|
615
|
+
* },
|
|
616
|
+
* "jd": {
|
|
617
|
+
* "hostVer": "√",
|
|
618
|
+
* "uniVer": "√",
|
|
619
|
+
* "unixVer": "x"
|
|
620
|
+
* }
|
|
621
|
+
* },
|
|
622
|
+
* "web": {
|
|
623
|
+
* "uniVer": "√",
|
|
624
|
+
* "unixVer": "4.0"
|
|
410
625
|
* }
|
|
411
|
-
|
|
412
|
-
|
|
413
|
-
|
|
414
|
-
|
|
415
|
-
|
|
416
|
-
|
|
417
|
-
|
|
418
|
-
|
|
419
|
-
|
|
420
|
-
|
|
421
|
-
|
|
422
|
-
|
|
423
|
-
|
|
424
|
-
|
|
425
|
-
|
|
426
|
-
|
|
427
|
-
|
|
428
|
-
|
|
429
|
-
|
|
430
|
-
|
|
431
|
-
|
|
432
|
-
|
|
433
|
-
|
|
434
|
-
|
|
435
|
-
|
|
436
|
-
|
|
437
|
-
|
|
438
|
-
|
|
439
|
-
|
|
440
|
-
|
|
441
|
-
*
|
|
442
|
-
|
|
443
|
-
|
|
444
|
-
|
|
626
|
+
* }
|
|
627
|
+
* @uniVersion 2.0.3
|
|
628
|
+
* @uniVueVersion 2,3 //支持的vue版本
|
|
629
|
+
*/
|
|
630
|
+
getStorageInfo(options: GetStorageInfoOptions): void,
|
|
631
|
+
/**
|
|
632
|
+
* uni.getStorageInfoSync函数定义
|
|
633
|
+
* 同步获取当前 storage 的相关信息。
|
|
634
|
+
*
|
|
635
|
+
* @tutorial-uni-app https://uniapp.dcloud.net.cn/api/storage/storage.html#getstorageinfosync
|
|
636
|
+
* @tutorial-uni-app-x https://doc.dcloud.net.cn/uni-app-x/api/storage.html#getstorageinfosync
|
|
637
|
+
* @tutorial https://doc.dcloud.net.cn/uni-app-x/api/storage.html#getstorageinfosync
|
|
638
|
+
*
|
|
639
|
+
* @uniPlatform {
|
|
640
|
+
* "app": {
|
|
641
|
+
* "android": {
|
|
642
|
+
* "osVer": "5.0",
|
|
643
|
+
* "uniVer": "2.0.3",
|
|
644
|
+
* "unixVer": "3.9.0"
|
|
645
|
+
* },
|
|
646
|
+
* "ios": {
|
|
647
|
+
* "osVer": "12.0",
|
|
648
|
+
* "uniVer": "2.0.3",
|
|
649
|
+
* "unixVer": "4.11"
|
|
650
|
+
* },
|
|
651
|
+
* "harmony": {
|
|
652
|
+
* "osVer": "3.0",
|
|
653
|
+
* "uniVer": "4.23",
|
|
654
|
+
* "unixVer": "x"
|
|
655
|
+
* }
|
|
656
|
+
* },
|
|
657
|
+
* "mp": {
|
|
658
|
+
* "weixin": {
|
|
659
|
+
* "hostVer": "√",
|
|
660
|
+
* "uniVer": "√",
|
|
661
|
+
* "unixVer": "4.41"
|
|
662
|
+
* },
|
|
663
|
+
* "alipay": {
|
|
664
|
+
* "hostVer": "√",
|
|
665
|
+
* "uniVer": "√",
|
|
666
|
+
* "unixVer": "x"
|
|
667
|
+
* },
|
|
668
|
+
* "baidu": {
|
|
669
|
+
* "hostVer": "√",
|
|
670
|
+
* "uniVer": "√",
|
|
671
|
+
* "unixVer": "x"
|
|
672
|
+
* },
|
|
673
|
+
* "toutiao": {
|
|
674
|
+
* "hostVer": "√",
|
|
675
|
+
* "uniVer": "√",
|
|
676
|
+
* "unixVer": "x"
|
|
677
|
+
* },
|
|
678
|
+
* "lark": {
|
|
679
|
+
* "hostVer": "√",
|
|
680
|
+
* "uniVer": "√",
|
|
681
|
+
* "unixVer": "x"
|
|
682
|
+
* },
|
|
683
|
+
* "qq": {
|
|
684
|
+
* "hostVer": "√",
|
|
685
|
+
* "uniVer": "√",
|
|
686
|
+
* "unixVer": "x"
|
|
687
|
+
* },
|
|
688
|
+
* "kuaishou": {
|
|
689
|
+
* "hostVer": "√",
|
|
690
|
+
* "uniVer": "√",
|
|
691
|
+
* "unixVer": "x"
|
|
692
|
+
* },
|
|
693
|
+
* "jd": {
|
|
694
|
+
* "hostVer": "√",
|
|
695
|
+
* "uniVer": "√",
|
|
696
|
+
* "unixVer": "x"
|
|
697
|
+
* }
|
|
698
|
+
* },
|
|
699
|
+
* "web": {
|
|
700
|
+
* "uniVer": "√",
|
|
701
|
+
* "unixVer": "4.0"
|
|
445
702
|
* }
|
|
446
|
-
|
|
447
|
-
|
|
448
|
-
|
|
449
|
-
|
|
450
|
-
|
|
451
|
-
|
|
452
|
-
|
|
453
|
-
|
|
454
|
-
|
|
455
|
-
|
|
456
|
-
|
|
457
|
-
|
|
458
|
-
|
|
459
|
-
|
|
460
|
-
|
|
461
|
-
|
|
462
|
-
|
|
463
|
-
|
|
464
|
-
|
|
465
|
-
|
|
466
|
-
|
|
467
|
-
|
|
468
|
-
|
|
469
|
-
|
|
470
|
-
|
|
471
|
-
|
|
472
|
-
|
|
473
|
-
|
|
474
|
-
|
|
475
|
-
|
|
476
|
-
|
|
477
|
-
|
|
478
|
-
*
|
|
479
|
-
|
|
480
|
-
|
|
481
|
-
|
|
703
|
+
* }
|
|
704
|
+
* @uniVersion 2.0.3
|
|
705
|
+
* @uniVueVersion 2,3 //支持的vue版本
|
|
706
|
+
*/
|
|
707
|
+
getStorageInfoSync(): GetStorageInfoSuccess,
|
|
708
|
+
/**
|
|
709
|
+
* uni.removeStorage函数定义
|
|
710
|
+
* 从本地存储中异步移除指定 key。
|
|
711
|
+
*
|
|
712
|
+
* @param {RemoveStorageOptions} options
|
|
713
|
+
*
|
|
714
|
+
* @tutorial-uni-app https://uniapp.dcloud.net.cn/api/storage/storage.html#removestorage
|
|
715
|
+
* @tutorial-uni-app-x https://doc.dcloud.net.cn/uni-app-x/api/storage.html#removestorage
|
|
716
|
+
* @tutorial https://doc.dcloud.net.cn/uni-app-x/api/storage.html#removestorage
|
|
717
|
+
*
|
|
718
|
+
* @uniPlatform {
|
|
719
|
+
* "app": {
|
|
720
|
+
* "android": {
|
|
721
|
+
* "osVer": "5.0",
|
|
722
|
+
* "uniVer": "2.0.3",
|
|
723
|
+
* "unixVer": "3.9.0"
|
|
724
|
+
* },
|
|
725
|
+
* "ios": {
|
|
726
|
+
* "osVer": "12.0",
|
|
727
|
+
* "uniVer": "2.0.3",
|
|
728
|
+
* "unixVer": "4.11"
|
|
729
|
+
* },
|
|
730
|
+
* "harmony": {
|
|
731
|
+
* "osVer": "3.0",
|
|
732
|
+
* "uniVer": "4.23",
|
|
733
|
+
* "unixVer": "x"
|
|
734
|
+
* }
|
|
735
|
+
* },
|
|
736
|
+
* "mp": {
|
|
737
|
+
* "weixin": {
|
|
738
|
+
* "hostVer": "√",
|
|
739
|
+
* "uniVer": "√",
|
|
740
|
+
* "unixVer": "4.41"
|
|
741
|
+
* },
|
|
742
|
+
* "alipay": {
|
|
743
|
+
* "hostVer": "√",
|
|
744
|
+
* "uniVer": "√",
|
|
745
|
+
* "unixVer": "x"
|
|
746
|
+
* },
|
|
747
|
+
* "baidu": {
|
|
748
|
+
* "hostVer": "√",
|
|
749
|
+
* "uniVer": "√",
|
|
750
|
+
* "unixVer": "x"
|
|
751
|
+
* },
|
|
752
|
+
* "toutiao": {
|
|
753
|
+
* "hostVer": "√",
|
|
754
|
+
* "uniVer": "√",
|
|
755
|
+
* "unixVer": "x"
|
|
756
|
+
* },
|
|
757
|
+
* "lark": {
|
|
758
|
+
* "hostVer": "√",
|
|
759
|
+
* "uniVer": "√",
|
|
760
|
+
* "unixVer": "x"
|
|
761
|
+
* },
|
|
762
|
+
* "qq": {
|
|
763
|
+
* "hostVer": "√",
|
|
764
|
+
* "uniVer": "√",
|
|
765
|
+
* "unixVer": "x"
|
|
766
|
+
* },
|
|
767
|
+
* "kuaishou": {
|
|
768
|
+
* "hostVer": "√",
|
|
769
|
+
* "uniVer": "√",
|
|
770
|
+
* "unixVer": "x"
|
|
771
|
+
* },
|
|
772
|
+
* "jd": {
|
|
773
|
+
* "hostVer": "√",
|
|
774
|
+
* "uniVer": "√",
|
|
775
|
+
* "unixVer": "x"
|
|
776
|
+
* }
|
|
777
|
+
* },
|
|
778
|
+
* "web": {
|
|
779
|
+
* "uniVer": "√",
|
|
780
|
+
* "unixVer": "4.0"
|
|
482
781
|
* }
|
|
483
|
-
|
|
484
|
-
|
|
485
|
-
|
|
486
|
-
|
|
487
|
-
|
|
488
|
-
|
|
489
|
-
|
|
490
|
-
|
|
491
|
-
|
|
492
|
-
|
|
493
|
-
|
|
494
|
-
|
|
495
|
-
|
|
496
|
-
|
|
497
|
-
|
|
498
|
-
|
|
499
|
-
|
|
500
|
-
|
|
501
|
-
|
|
502
|
-
|
|
503
|
-
|
|
504
|
-
|
|
505
|
-
|
|
506
|
-
|
|
507
|
-
|
|
508
|
-
|
|
509
|
-
|
|
510
|
-
|
|
511
|
-
|
|
512
|
-
|
|
513
|
-
|
|
514
|
-
|
|
515
|
-
*
|
|
516
|
-
|
|
517
|
-
|
|
518
|
-
|
|
782
|
+
* }
|
|
783
|
+
* @uniVersion 2.0.3
|
|
784
|
+
* @uniVueVersion 2,3 //支持的vue版本
|
|
785
|
+
*/
|
|
786
|
+
removeStorage(options: RemoveStorageOptions): void,
|
|
787
|
+
/**
|
|
788
|
+
* uni.removeStorageSync函数定义
|
|
789
|
+
* 从本地存储中同步移除指定 key。
|
|
790
|
+
*
|
|
791
|
+
* @param {string} key 本地存储中的指定的 key
|
|
792
|
+
*
|
|
793
|
+
* @tutorial-uni-app https://uniapp.dcloud.net.cn/api/storage/storage.html#removestoragesync
|
|
794
|
+
* @tutorial-uni-app-x https://doc.dcloud.net.cn/uni-app-x/api/storage.html#removestoragesync
|
|
795
|
+
* @tutorial https://doc.dcloud.net.cn/uni-app-x/api/storage.html#removestoragesync
|
|
796
|
+
*
|
|
797
|
+
* @uniPlatform {
|
|
798
|
+
* "app": {
|
|
799
|
+
* "android": {
|
|
800
|
+
* "osVer": "5.0",
|
|
801
|
+
* "uniVer": "2.0.3",
|
|
802
|
+
* "unixVer": "3.9.0"
|
|
803
|
+
* },
|
|
804
|
+
* "ios": {
|
|
805
|
+
* "osVer": "12.0",
|
|
806
|
+
* "uniVer": "2.0.3",
|
|
807
|
+
* "unixVer": "4.11"
|
|
808
|
+
* },
|
|
809
|
+
* "harmony": {
|
|
810
|
+
* "osVer": "3.0",
|
|
811
|
+
* "uniVer": "4.23",
|
|
812
|
+
* "unixVer": "x"
|
|
813
|
+
* }
|
|
814
|
+
* },
|
|
815
|
+
* "mp": {
|
|
816
|
+
* "weixin": {
|
|
817
|
+
* "hostVer": "√",
|
|
818
|
+
* "uniVer": "√",
|
|
819
|
+
* "unixVer": "4.41"
|
|
820
|
+
* },
|
|
821
|
+
* "alipay": {
|
|
822
|
+
* "hostVer": "√",
|
|
823
|
+
* "uniVer": "√",
|
|
824
|
+
* "unixVer": "x"
|
|
825
|
+
* },
|
|
826
|
+
* "baidu": {
|
|
827
|
+
* "hostVer": "√",
|
|
828
|
+
* "uniVer": "√",
|
|
829
|
+
* "unixVer": "x"
|
|
830
|
+
* },
|
|
831
|
+
* "toutiao": {
|
|
832
|
+
* "hostVer": "√",
|
|
833
|
+
* "uniVer": "√",
|
|
834
|
+
* "unixVer": "x"
|
|
835
|
+
* },
|
|
836
|
+
* "lark": {
|
|
837
|
+
* "hostVer": "√",
|
|
838
|
+
* "uniVer": "√",
|
|
839
|
+
* "unixVer": "x"
|
|
840
|
+
* },
|
|
841
|
+
* "qq": {
|
|
842
|
+
* "hostVer": "√",
|
|
843
|
+
* "uniVer": "√",
|
|
844
|
+
* "unixVer": "x"
|
|
845
|
+
* },
|
|
846
|
+
* "kuaishou": {
|
|
847
|
+
* "hostVer": "√",
|
|
848
|
+
* "uniVer": "√",
|
|
849
|
+
* "unixVer": "x"
|
|
850
|
+
* },
|
|
851
|
+
* "jd": {
|
|
852
|
+
* "hostVer": "√",
|
|
853
|
+
* "uniVer": "√",
|
|
854
|
+
* "unixVer": "x"
|
|
855
|
+
* }
|
|
856
|
+
* },
|
|
857
|
+
* "web": {
|
|
858
|
+
* "uniVer": "√",
|
|
859
|
+
* "unixVer": "4.0"
|
|
519
860
|
* }
|
|
520
|
-
|
|
521
|
-
|
|
522
|
-
|
|
523
|
-
|
|
524
|
-
|
|
525
|
-
|
|
526
|
-
|
|
527
|
-
|
|
528
|
-
|
|
529
|
-
|
|
530
|
-
|
|
531
|
-
|
|
532
|
-
|
|
533
|
-
|
|
534
|
-
|
|
535
|
-
|
|
536
|
-
|
|
537
|
-
|
|
538
|
-
|
|
539
|
-
|
|
540
|
-
|
|
541
|
-
|
|
542
|
-
|
|
543
|
-
|
|
544
|
-
|
|
545
|
-
|
|
546
|
-
|
|
547
|
-
|
|
548
|
-
|
|
549
|
-
|
|
550
|
-
*
|
|
551
|
-
|
|
552
|
-
|
|
553
|
-
|
|
861
|
+
* }
|
|
862
|
+
* @uniVersion 2.0.3
|
|
863
|
+
* @uniVueVersion 2,3 //支持的vue版本
|
|
864
|
+
*/
|
|
865
|
+
removeStorageSync(key: string): void,
|
|
866
|
+
/**
|
|
867
|
+
* uni.clearStorage函数定义
|
|
868
|
+
* 清除本地数据存储。
|
|
869
|
+
*
|
|
870
|
+
* @tutorial-uni-app https://uniapp.dcloud.net.cn/api/storage/storage.html#clearstorage
|
|
871
|
+
* @tutorial-uni-app-x https://doc.dcloud.net.cn/uni-app-x/api/storage.html#clearstorage
|
|
872
|
+
* @tutorial https://doc.dcloud.net.cn/uni-app-x/api/storage.html#clearstorage
|
|
873
|
+
*
|
|
874
|
+
* @uniPlatform {
|
|
875
|
+
* "app": {
|
|
876
|
+
* "android": {
|
|
877
|
+
* "osVer": "5.0",
|
|
878
|
+
* "uniVer": "2.0.3",
|
|
879
|
+
* "unixVer": "3.9.0"
|
|
880
|
+
* },
|
|
881
|
+
* "ios": {
|
|
882
|
+
* "osVer": "12.0",
|
|
883
|
+
* "uniVer": "2.0.3",
|
|
884
|
+
* "unixVer": "4.11"
|
|
885
|
+
* },
|
|
886
|
+
* "harmony": {
|
|
887
|
+
* "osVer": "3.0",
|
|
888
|
+
* "uniVer": "4.23",
|
|
889
|
+
* "unixVer": "x"
|
|
890
|
+
* }
|
|
891
|
+
* },
|
|
892
|
+
* "mp": {
|
|
893
|
+
* "weixin": {
|
|
894
|
+
* "hostVer": "√",
|
|
895
|
+
* "uniVer": "√",
|
|
896
|
+
* "unixVer": "4.41"
|
|
897
|
+
* },
|
|
898
|
+
* "alipay": {
|
|
899
|
+
* "hostVer": "√",
|
|
900
|
+
* "uniVer": "√",
|
|
901
|
+
* "unixVer": "x"
|
|
902
|
+
* },
|
|
903
|
+
* "baidu": {
|
|
904
|
+
* "hostVer": "√",
|
|
905
|
+
* "uniVer": "√",
|
|
906
|
+
* "unixVer": "x"
|
|
907
|
+
* },
|
|
908
|
+
* "toutiao": {
|
|
909
|
+
* "hostVer": "√",
|
|
910
|
+
* "uniVer": "√",
|
|
911
|
+
* "unixVer": "x"
|
|
912
|
+
* },
|
|
913
|
+
* "lark": {
|
|
914
|
+
* "hostVer": "√",
|
|
915
|
+
* "uniVer": "√",
|
|
916
|
+
* "unixVer": "x"
|
|
917
|
+
* },
|
|
918
|
+
* "qq": {
|
|
919
|
+
* "hostVer": "√",
|
|
920
|
+
* "uniVer": "√",
|
|
921
|
+
* "unixVer": "x"
|
|
922
|
+
* },
|
|
923
|
+
* "kuaishou": {
|
|
924
|
+
* "hostVer": "√",
|
|
925
|
+
* "uniVer": "√",
|
|
926
|
+
* "unixVer": "x"
|
|
927
|
+
* },
|
|
928
|
+
* "jd": {
|
|
929
|
+
* "hostVer": "√",
|
|
930
|
+
* "uniVer": "√",
|
|
931
|
+
* "unixVer": "x"
|
|
932
|
+
* }
|
|
933
|
+
* },
|
|
934
|
+
* "web": {
|
|
935
|
+
* "uniVer": "√",
|
|
936
|
+
* "unixVer": "4.0"
|
|
554
937
|
* }
|
|
555
|
-
|
|
556
|
-
|
|
557
|
-
|
|
558
|
-
|
|
559
|
-
|
|
560
|
-
|
|
561
|
-
|
|
562
|
-
|
|
563
|
-
|
|
564
|
-
|
|
565
|
-
|
|
566
|
-
|
|
567
|
-
|
|
568
|
-
|
|
569
|
-
|
|
570
|
-
|
|
571
|
-
|
|
572
|
-
|
|
573
|
-
|
|
574
|
-
|
|
575
|
-
|
|
576
|
-
|
|
577
|
-
|
|
578
|
-
|
|
579
|
-
|
|
580
|
-
|
|
581
|
-
|
|
582
|
-
|
|
583
|
-
|
|
584
|
-
|
|
585
|
-
*
|
|
586
|
-
|
|
587
|
-
|
|
588
|
-
|
|
938
|
+
* }
|
|
939
|
+
* @uniVersion 2.0.3
|
|
940
|
+
* @uniVueVersion 2,3 //支持的vue版本
|
|
941
|
+
*/
|
|
942
|
+
clearStorage(option?: ClearStorageOptions | null): void,
|
|
943
|
+
/**
|
|
944
|
+
* uni.clearStorageSync函数定义
|
|
945
|
+
* 清除本地数据存储。
|
|
946
|
+
*
|
|
947
|
+
* @tutorial-uni-app https://uniapp.dcloud.net.cn/api/storage/storage.html#clearstoragesync
|
|
948
|
+
* @tutorial-uni-app-x https://doc.dcloud.net.cn/uni-app-x/api/storage.html#clearstoragesync
|
|
949
|
+
* @tutorial https://doc.dcloud.net.cn/uni-app-x/api/storage.html#clearstoragesync
|
|
950
|
+
*
|
|
951
|
+
* @uniPlatform {
|
|
952
|
+
* "app": {
|
|
953
|
+
* "android": {
|
|
954
|
+
* "osVer": "5.0",
|
|
955
|
+
* "uniVer": "2.0.3",
|
|
956
|
+
* "unixVer": "3.9.0"
|
|
957
|
+
* },
|
|
958
|
+
* "ios": {
|
|
959
|
+
* "osVer": "12.0",
|
|
960
|
+
* "uniVer": "2.0.3",
|
|
961
|
+
* "unixVer": "4.11"
|
|
962
|
+
* },
|
|
963
|
+
* "harmony": {
|
|
964
|
+
* "osVer": "3.0",
|
|
965
|
+
* "uniVer": "4.23",
|
|
966
|
+
* "unixVer": "x"
|
|
967
|
+
* }
|
|
968
|
+
* },
|
|
969
|
+
* "mp": {
|
|
970
|
+
* "weixin": {
|
|
971
|
+
* "hostVer": "√",
|
|
972
|
+
* "uniVer": "√",
|
|
973
|
+
* "unixVer": "4.41"
|
|
974
|
+
* },
|
|
975
|
+
* "alipay": {
|
|
976
|
+
* "hostVer": "√",
|
|
977
|
+
* "uniVer": "√",
|
|
978
|
+
* "unixVer": "x"
|
|
979
|
+
* },
|
|
980
|
+
* "baidu": {
|
|
981
|
+
* "hostVer": "√",
|
|
982
|
+
* "uniVer": "√",
|
|
983
|
+
* "unixVer": "x"
|
|
984
|
+
* },
|
|
985
|
+
* "toutiao": {
|
|
986
|
+
* "hostVer": "√",
|
|
987
|
+
* "uniVer": "√",
|
|
988
|
+
* "unixVer": "x"
|
|
989
|
+
* },
|
|
990
|
+
* "lark": {
|
|
991
|
+
* "hostVer": "√",
|
|
992
|
+
* "uniVer": "√",
|
|
993
|
+
* "unixVer": "x"
|
|
994
|
+
* },
|
|
995
|
+
* "qq": {
|
|
996
|
+
* "hostVer": "√",
|
|
997
|
+
* "uniVer": "√",
|
|
998
|
+
* "unixVer": "x"
|
|
999
|
+
* },
|
|
1000
|
+
* "kuaishou": {
|
|
1001
|
+
* "hostVer": "√",
|
|
1002
|
+
* "uniVer": "√",
|
|
1003
|
+
* "unixVer": "x"
|
|
1004
|
+
* },
|
|
1005
|
+
* "jd": {
|
|
1006
|
+
* "hostVer": "√",
|
|
1007
|
+
* "uniVer": "√",
|
|
1008
|
+
* "unixVer": "x"
|
|
1009
|
+
* }
|
|
1010
|
+
* },
|
|
1011
|
+
* "web": {
|
|
1012
|
+
* "uniVer": "√",
|
|
1013
|
+
* "unixVer": "4.0"
|
|
589
1014
|
* }
|
|
590
|
-
|
|
591
|
-
|
|
592
|
-
|
|
593
|
-
|
|
594
|
-
|
|
595
|
-
* }
|
|
596
|
-
* @uniVersion 2.0.3
|
|
597
|
-
* @uniVueVersion 2,3 //支持的vue版本
|
|
598
|
-
*/
|
|
599
|
-
clearStorageSync() : void
|
|
1015
|
+
* }
|
|
1016
|
+
* @uniVersion 2.0.3
|
|
1017
|
+
* @uniVueVersion 2,3 //支持的vue版本
|
|
1018
|
+
*/
|
|
1019
|
+
clearStorageSync(): void
|
|
600
1020
|
}
|