diff --git a/en/application-dev/reference/apis/js-apis-reminderAgent.md b/en/application-dev/reference/apis/js-apis-reminderAgent.md index 9c74bc655ec2c4959ad4b38c164bfd70a2a06f1a..b0e3e5884ce783f84f3de846f0875a6a67c5575b 100644 --- a/en/application-dev/reference/apis/js-apis-reminderAgent.md +++ b/en/application-dev/reference/apis/js-apis-reminderAgent.md @@ -279,7 +279,7 @@ mySlot: { type: 3, sound: "/sdcard/music2.mp3" } -reminderAgent.addNotificationSlot(this.mySlot, (err, data) => { +reminderAgent.addNotificationSlot(mySlot, (err, data) => { console.log("addNotificationSlot callback"); }); ``` @@ -313,7 +313,7 @@ export default { data: { mySlot: { sound: "/sdcard/music2.mp3" } }, addSlot() { - reminderAgent.addNotificationSlot(this.mySlot).then(() => { + reminderAgent.addNotificationSlot(mySlot).then(() => { console.log("do next"); }); } diff --git a/zh-cn/application-dev/reference/apis/js-apis-reminderAgent.md b/zh-cn/application-dev/reference/apis/js-apis-reminderAgent.md index 3bbe28f2a16472c13da96d8fe7d9ea67fc822356..c422e9da43e48a3afffef1dce1c855e8a4bacfcd 100644 --- a/zh-cn/application-dev/reference/apis/js-apis-reminderAgent.md +++ b/zh-cn/application-dev/reference/apis/js-apis-reminderAgent.md @@ -279,7 +279,7 @@ mySlot: { type: 3, sound: "/sdcard/music2.mp3" } -reminderAgent.addNotificationSlot(this.mySlot, (err, data) => { +reminderAgent.addNotificationSlot(mySlot, (err, data) => { console.log("addNotificationSlot callback"); }); ``` @@ -312,7 +312,7 @@ mySlot: { type: 3, sound: "/sdcard/music2.mp3" } -reminderAgent.addNotificationSlot(this.mySlot).then(() => { +reminderAgent.addNotificationSlot(mySlot).then(() => { console.log("addNotificationSlot promise"); }); ```