未验证 提交 e3c5e52f 编写于 作者: O openharmony_ci 提交者: Gitee

!10550 翻译完成:10315【轻量级 PR】:update js-apis-url.md (仅涉及代码更新)

Merge pull request !10550 from wusongqing/TR10315
......@@ -128,7 +128,7 @@ Obtains an ES6 iterator. Each item of the iterator is a JavaScript array, and th
| Type| Description|
| -------- | -------- |
| IterableIterator<[string, string]> | ES6 iterator.|
| IterableIterator<[string, string]> | ES6 iterator.|
**Example**
......@@ -192,7 +192,7 @@ Obtains the value of the first key-value pair based on the specified key.
| Type| Description|
| -------- | -------- |
| string | Returns the value of the first key-value pair if obtained.|
| null | Returns null if no value is obtained.|
| null | Returns **null** if no value is obtained.|
**Example**
......@@ -333,7 +333,7 @@ Obtains an ES6 iterator. Each item of the iterator is a JavaScript array, and th
| Type| Description|
| -------- | -------- |
| IterableIterator<[string, string]> | ES6 iterator.|
| IterableIterator<[string, string]> | ES6 iterator.|
**Example**
......@@ -404,7 +404,7 @@ Creates a URL.
| Name| Type| Mandatory| Description|
| -------- | -------- | -------- | -------- |
| url | string | Yes| Input object.|
| base | string&nbsp;\|&nbsp;URL | No| Input parameter, which can be any of the following:<br>- **string**: string<br>- **URL**: string or object|
| base | string \| URL | No| Input parameter, which can be any of the following:<br>- **string**: string<br>- **URL**: string or object|
**Example**
......@@ -442,7 +442,7 @@ Converts the parsed URL into a string.
```js
const url = new Url.URL('http://username:password@host:8080/directory/file?query=pppppp#qwer=da');
url.toString()
url.toString();
```
......@@ -463,5 +463,5 @@ Converts the parsed URL into a JSON string.
**Example**
```js
const url = new Url.URL('http://username:password@host:8080/directory/file?query=pppppp#qwer=da');
url.toJSON()
url.toJSON();
```
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册