未验证 提交 b14f3578 编写于 作者: 小马奔腾 提交者: Gitee

Modify the example

Modify the example

issue:https://gitee.com/openharmony/docs/issues/I645RHSigned-off-by: N小马奔腾 <maxiaodong16@huawei.com>
上级 5f00fddb
...@@ -165,7 +165,7 @@ forEach(callbackFn: (value: string, key: string, searchParams: this) => void, th ...@@ -165,7 +165,7 @@ forEach(callbackFn: (value: string, key: string, searchParams: this) => void, th
```js ```js
const myURLObject = new Url.URL('https://developer.exampleUrl/?fod=1&bard=2'); const myURLObject = new Url.URL('https://developer.exampleUrl/?fod=1&bard=2');
myURLObject.URLParams.forEach((value, name, searchParams) => { myURLObject.searchParams.forEach((value, name, searchParams) => {
console.log(name, value, myURLObject.searchParams === searchParams); console.log(name, value, myURLObject.searchParams === searchParams);
}); });
``` ```
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册