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

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

Merge pull request !10551 from wusongqing/cherry-pick-1665623887
...@@ -128,7 +128,7 @@ Obtains an ES6 iterator. Each item of the iterator is a JavaScript array, and th ...@@ -128,7 +128,7 @@ Obtains an ES6 iterator. Each item of the iterator is a JavaScript array, and th
| Type| Description| | Type| Description|
| -------- | -------- | | -------- | -------- |
| IterableIterator<[string, string]> | ES6 iterator.| | IterableIterator<[string, string]> | ES6 iterator.|
**Example** **Example**
...@@ -192,7 +192,7 @@ Obtains the value of the first key-value pair based on the specified key. ...@@ -192,7 +192,7 @@ Obtains the value of the first key-value pair based on the specified key.
| Type| Description| | Type| Description|
| -------- | -------- | | -------- | -------- |
| string | Returns the value of the first key-value pair if obtained.| | 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** **Example**
...@@ -333,7 +333,7 @@ Obtains an ES6 iterator. Each item of the iterator is a JavaScript array, and th ...@@ -333,7 +333,7 @@ Obtains an ES6 iterator. Each item of the iterator is a JavaScript array, and th
| Type| Description| | Type| Description|
| -------- | -------- | | -------- | -------- |
| IterableIterator<[string, string]> | ES6 iterator.| | IterableIterator<[string, string]> | ES6 iterator.|
**Example** **Example**
...@@ -404,7 +404,7 @@ Creates a URL. ...@@ -404,7 +404,7 @@ Creates a URL.
| Name| Type| Mandatory| Description| | Name| Type| Mandatory| Description|
| -------- | -------- | -------- | -------- | | -------- | -------- | -------- | -------- |
| url | string | Yes| Input object.| | 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** **Example**
...@@ -442,7 +442,7 @@ Converts the parsed URL into a string. ...@@ -442,7 +442,7 @@ Converts the parsed URL into a string.
```js ```js
const url = new Url.URL('http://username:password@host:8080/directory/file?query=pppppp#qwer=da'); 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. ...@@ -463,5 +463,5 @@ Converts the parsed URL into a JSON string.
**Example** **Example**
```js ```js
const url = new Url.URL('http://username:password@host:8080/directory/file?query=pppppp#qwer=da'); 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.
先完成此消息的编辑!
想要评论请 注册