From ec3cc4c6970dbd10ef7ce5dd3dbc36ec2f9ebef6 Mon Sep 17 00:00:00 2001 From: SUE Date: Mon, 18 Apr 2022 08:52:30 +0000 Subject: [PATCH] Signed-off-by:hellohyh001 --- .../reference/apis/js-apis-system-vibrate.md | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/zh-cn/application-dev/reference/apis/js-apis-system-vibrate.md b/zh-cn/application-dev/reference/apis/js-apis-system-vibrate.md index 156a728a3b..1a674fbe9b 100644 --- a/zh-cn/application-dev/reference/apis/js-apis-system-vibrate.md +++ b/zh-cn/application-dev/reference/apis/js-apis-system-vibrate.md @@ -36,13 +36,13 @@ vibrate(Object): void ``` vibrator.vibrate({ mode: 'short', - success: function(ret) { + success: function() { console.log('vibrate is successful'); }, - fail: function(ret) { - console.log('vibrate is failed'); + fail: function(data, code) { + console.log("vibrate is failed, data: " + data + ", code: " + code); }, - complete: function(ret) { + complete: function() { console.log('vibrate is completed'); } }); -- GitLab