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

!2318 Modify the format

Merge pull request !2318 from 小马奔腾/master
......@@ -113,7 +113,7 @@ console.log(params.getAll('fod')) // Output ["1","3"].
### entries
entries(): IterableIterator<[string, string]>
entries(): IterableIterator<[string, string]>
Obtains an ES6 iterator. Each item of the iterator is a JavaScript array, and the first and second fields of each array are the key and value respectively.
......@@ -135,7 +135,7 @@ for (var pair of searchParamsObject .entries()) { // Show keyName/valueName pair
### forEach
forEach(callbackfn: (value: string, key: string, searchParams: Object) =&gt; void, thisArg?: Object): void
forEach(callbackfn: (value: string, key: string, searchParams: this) => void, thisArg?: Object): void
Traverses the key-value pairs in the **URLSearchParams** instance by using a callback.
......
......@@ -147,7 +147,7 @@ Processes an asynchronous function and returns a promise version.
### constructor
constructor(encoding?: string, options?: { fatal?: boolean;ignoreBOM?: boolean })
constructor(encoding?: string, options?: { fatal?: boolean; ignoreBOM?: boolean })
A constructor used to create a **TextDecoder** object.
......@@ -1108,7 +1108,7 @@ class Temperature{
### constructor<sup>8+</sup>
constructor(lowerObj: ScopeType,upperObje: ScopeType)
constructor(lowerObj: ScopeType, upperObj: ScopeType)
A constructor used to create a **Scope** object with the specified upper and lower limits.
......@@ -2321,7 +2321,7 @@ Checks whether the input value is a string object.
### isSymbolObjec<sup>8+</sup>
isSymbolObjec(value: Object): boolean
isSymbolObject(value: Object): boolean
Checks whether the input value is a symbol object.
......
......@@ -113,7 +113,7 @@ console.log(params.getAll('fod')) // Output ["1","3"].
### entries
entries(): IterableIterator&lt;[string, string]&gt;
entries(): IterableIterator<[string, string]>
返回一个ES6的迭代器,迭代器的每一项都是一个 JavaScript Array。Array的第一项是name,Array的第二项是value。
......@@ -135,7 +135,7 @@ for (var pair of searchParamsObject .entries()) { // Show keyName/valueName pair
### forEach
forEach(callbackfn: (value: string, key: string, searchParams: Object) =&gt; void, thisArg?: Object): void
forEach(callbackfn: (value: string, key: string, searchParams: this) => void, thisArg?: Object): void
通过回调函数来遍历URLSearchParams实例对象上的键值对。
......
......@@ -147,7 +147,7 @@ promiseWrapper(original: (err: Object, value: Object) =&gt; void): Object
### constructor
constructor(encoding?: string, options?: { fatal?: boolean;ignoreBOM?: boolean })
constructor(encoding?: string, options?: { fatal?: boolean; ignoreBOM?: boolean })
TextDecoder的构造函数。
......@@ -1108,7 +1108,7 @@ class Temperature{
### constructor<sup>8+</sup>
constructor(lowerObj: ScopeType,upperObje: ScopeType)
constructor(lowerObj: ScopeType, upperObj: ScopeType)
用于创建指定下限和上限的作用域实例的构造函数,返回一个Scope对象。
......@@ -2321,7 +2321,7 @@ isStringObject(value: Object): boolean
### isSymbolObjec<sup>8+</sup>
isSymbolObjec(value: Object): boolean
isSymbolObject(value: Object): boolean
检查输入的value是否是Symbol对象类型。
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册