diff --git a/en/application-dev/reference/apis/js-apis-eventhub.md b/en/application-dev/reference/apis/js-apis-eventhub.md index cee0f8f7bbfe663d548939e11193b18b1a55b6c2..1ee467b32f47d6f277783d6c02e6f842939d8ae8 100644 --- a/en/application-dev/reference/apis/js-apis-eventhub.md +++ b/en/application-dev/reference/apis/js-apis-eventhub.md @@ -133,7 +133,7 @@ Triggers an event. // func1 is called,1,2 this.context.eventHub.emit("123", 1, 2); } - func1(a: string, b: string) { + func1(a, b) { console.log("func1 is called," + a + "," + b); } } diff --git a/en/application-dev/reference/apis/js-apis-lightweightset.md b/en/application-dev/reference/apis/js-apis-lightweightset.md index 8d604ed7accd8a3781a626bfb13bd4b26342c599..93289ad2c1a4fcdec8aa01af7d3c336a653a6731 100644 --- a/en/application-dev/reference/apis/js-apis-lightweightset.md +++ b/en/application-dev/reference/apis/js-apis-lightweightset.md @@ -428,7 +428,7 @@ Uses a callback to traverse the entries in this container and obtain their posit callbackfn | Name| Type| Mandatory| Description| | -------- | -------- | -------- | -------- | -| value | T | Yes| Value of the entry that is currently traversed.| +| value | T | No| Value of the entry that is currently traversed.| | key| T | No| Key of the entry that is currently traversed (same as **value**).| | set | LightWeightSet<T> | No| Instance that invokes the **forEach** method.|