提交 4e6fa02e 编写于 作者: D DCloud_LXH

chore: uts build in object

上级 ee7c6696
因为 它太大了无法显示 source diff 。你可以改为 查看blob
......@@ -15,15 +15,14 @@ new Date(year, monthIndex [, day [, hours [, minutes [, seconds [, milliseconds]
- uts 的时间由世界标准时间(UTC)1970 年 1 月 1 日开始,用毫秒计时,一天由 86,400,000 毫秒组成。Date 对象的范围是 -100,000,000 天至 100,000,000 天(等效的毫秒值)。
## 静态方法
### now
表示自 UNIX 纪元开始(1970 年 1 月 1 日 00:00:00 (UTC))到当前时间的毫秒数。
### now()
**平台差异说明**
<!-- UTSJSON.Date.now.description -->
|JavaScript|Kotlin|Swift|
|:-:|:-:|:-:|
|√|√|√ `(3.6.11+)`|
<!-- UTSJSON.Date.now.param -->
<!-- UTSJSON.Date.now.returnValue -->
```ts
// this example takes 2 seconds to run
......@@ -36,6 +35,7 @@ setTimeout(() => {
// expected output: seconds elapsed = 2
}, 2000)
```
<!-- UTSJSON.Date.now.compatibility -->
## 实例方法
......
......@@ -29,4 +29,64 @@
<!-- UTSJSON.Global.parseFloat.compatibility -->
- 注意: 该方法仅支持对 string 类型的解析,传入其他类型会编译报错。
\ No newline at end of file
- 注意: 该方法仅支持对 string 类型的解析,传入其他类型会编译报错。
### isNaN(number)
<!-- UTSJSON.Global.isNaN.description -->
<!-- UTSJSON.Global.isNaN.param -->
<!-- UTSJSON.Global.isNaN.returnValue -->
<!-- UTSJSON.Global.isNaN.compatibility -->
### isFinite(number)
<!-- UTSJSON.Global.isFinite.description -->
<!-- UTSJSON.Global.isFinite.param -->
<!-- UTSJSON.Global.isFinite.returnValue -->
<!-- UTSJSON.Global.isFinite.compatibility -->
### decodeURI(encodedURI)
<!-- UTSJSON.Global.decodeURI.description -->
<!-- UTSJSON.Global.decodeURI.param -->
<!-- UTSJSON.Global.decodeURI.returnValue -->
<!-- UTSJSON.Global.decodeURI.compatibility -->
### decodeURIComponent(encodedURIComponent)
<!-- UTSJSON.Global.decodeURIComponent.description -->
<!-- UTSJSON.Global.decodeURIComponent.param -->
<!-- UTSJSON.Global.decodeURIComponent.returnValue -->
<!-- UTSJSON.Global.decodeURIComponent.compatibility -->
### encodeURI(uri)
<!-- UTSJSON.Global.encodeURI.description -->
<!-- UTSJSON.Global.encodeURI.param -->
<!-- UTSJSON.Global.encodeURI.returnValue -->
<!-- UTSJSON.Global.encodeURI.compatibility -->
### encodeURIComponent(uriComponent)
<!-- UTSJSON.Global.encodeURIComponent.description -->
<!-- UTSJSON.Global.encodeURIComponent.param -->
<!-- UTSJSON.Global.encodeURIComponent.returnValue -->
<!-- UTSJSON.Global.encodeURIComponent.compatibility -->
\ No newline at end of file
......@@ -3,6 +3,58 @@
Number 对象是经过封装的能让你处理数字值的对象。
## 实例属性
### MAX_VALUE
<!-- UTSJSON.Number.MAX_VALUE.description -->
<!-- UTSJSON.Number.MAX_VALUE.param -->
<!-- UTSJSON.Number.MAX_VALUE.returnValue -->
<!-- UTSJSON.Number.MAX_VALUE.compatibility -->
### MIN_VALUE
<!-- UTSJSON.Number.MIN_VALUE.description -->
<!-- UTSJSON.Number.MIN_VALUE.param -->
<!-- UTSJSON.Number.MIN_VALUE.returnValue -->
<!-- UTSJSON.Number.MIN_VALUE.compatibility -->
### NaN
<!-- UTSJSON.Number.NaN.description -->
<!-- UTSJSON.Number.NaN.param -->
<!-- UTSJSON.Number.NaN.returnValue -->
<!-- UTSJSON.Number.NaN.compatibility -->
### NEGATIVE_INFINITY
<!-- UTSJSON.Number.NEGATIVE_INFINITY.description -->
<!-- UTSJSON.Number.NEGATIVE_INFINITY.param -->
<!-- UTSJSON.Number.NEGATIVE_INFINITY.returnValue -->
<!-- UTSJSON.Number.NEGATIVE_INFINITY.compatibility -->
### POSITIVE_INFINITY
<!-- UTSJSON.Number.POSITIVE_INFINITY.description -->
<!-- UTSJSON.Number.POSITIVE_INFINITY.param -->
<!-- UTSJSON.Number.POSITIVE_INFINITY.returnValue -->
<!-- UTSJSON.Number.POSITIVE_INFINITY.compatibility -->
## 实例方法
......
......@@ -404,4 +404,74 @@ console.log(sentence.toUpperCase());
<!-- UTSJSON.String.trim.returnValue -->
<!-- UTSJSON.String.trim.compatibility -->
\ No newline at end of file
<!-- UTSJSON.String.trim.compatibility -->
### padStart(targetLength, padString?)
<!-- UTSJSON.String.padStart.description -->
<!-- UTSJSON.String.padStart.param -->
<!-- UTSJSON.String.padStart.returnValue -->
<!-- UTSJSON.String.padStart.compatibility -->
### padEnd(targetLength, padString?)
<!-- UTSJSON.String.padEnd.description -->
<!-- UTSJSON.String.padEnd.param -->
<!-- UTSJSON.String.padEnd.returnValue -->
<!-- UTSJSON.String.padEnd.compatibility -->
### includes(searchString, position?)
<!-- UTSJSON.String.includes.description -->
<!-- UTSJSON.String.includes.param -->
<!-- UTSJSON.String.includes.returnValue -->
<!-- UTSJSON.String.includes.compatibility -->
### endsWith(searchString, endPosition?)
<!-- UTSJSON.String.endsWith.description -->
<!-- UTSJSON.String.endsWith.param -->
<!-- UTSJSON.String.endsWith.returnValue -->
<!-- UTSJSON.String.endsWith.compatibility -->
### repeat(count)
<!-- UTSJSON.String.repeat.description -->
<!-- UTSJSON.String.repeat.param -->
<!-- UTSJSON.String.repeat.returnValue -->
<!-- UTSJSON.String.repeat.compatibility -->
### startsWith(searchString, position?)
<!-- UTSJSON.String.startsWith.description -->
<!-- UTSJSON.String.startsWith.param -->
<!-- UTSJSON.String.startsWith.returnValue -->
<!-- UTSJSON.String.startsWith.compatibility -->
### at(index)
<!-- UTSJSON.String.at.description -->
<!-- UTSJSON.String.at.param -->
<!-- UTSJSON.String.at.returnValue -->
<!-- UTSJSON.String.at.compatibility -->
\ No newline at end of file
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册