From 78758cd21779d4726065bc7744da195c0a28501d Mon Sep 17 00:00:00 2001 From: hyy666atveb <5547876+hyy666atveb@user.noreply.gitee.com> Date: Tue, 10 May 2022 09:37:00 +0000 Subject: [PATCH] =?UTF-8?q?update=20docs/api/other/choose-address.md.=20?= =?UTF-8?q?=E5=A2=9E=E5=8A=A0=E4=BA=86=E8=AF=B4=E6=98=8E=E7=A4=BA=E4=BE=8B?= =?UTF-8?q?uni.chooseAddress({})=E6=96=B9=E6=B3=95=E8=83=BD=E5=A4=9F?= =?UTF-8?q?=E7=94=A8await=E6=96=B9=E6=B3=95=E7=AE=80=E5=8C=96=E4=BB=A3?= =?UTF-8?q?=E7=A0=81=EF=BC=8C=E6=9B=B4=E6=B8=85=E6=99=B0=E5=87=86=E7=A1=AE?= =?UTF-8?q?=E5=BE=97=E5=88=B0=E8=BF=94=E5=9B=9E=E5=80=BC?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- docs/api/other/choose-address.md | 7 ++++++- 1 file changed, 6 insertions(+), 1 deletion(-) diff --git a/docs/api/other/choose-address.md b/docs/api/other/choose-address.md index 14c01f05a..ddb422c6b 100644 --- a/docs/api/other/choose-address.md +++ b/docs/api/other/choose-address.md @@ -47,4 +47,9 @@ uni.chooseAddress({ console.log(res.telNumber) } }) -``` \ No newline at end of file +``` +```js +async chooseAddress() { + const [err, success] = await uni.chooseAddress({}).catch(err => err) +// 返回的值是一个数组:err为错误对象;success为成功之后的收货地址对象 +``` -- Gitee