Skip to content
体验新版
项目
组织
正在加载...
登录
切换导航
打开侧边栏
DCloud
unidocs-zh
提交
12306c2b
unidocs-zh
项目概览
DCloud
/
unidocs-zh
通知
3597
Star
108
Fork
921
代码
文件
提交
分支
Tags
贡献者
分支图
Diff
Issue
120
列表
看板
标记
里程碑
合并请求
109
DevOps
流水线
流水线任务
计划
Wiki
0
Wiki
分析
仓库
DevOps
项目成员
Pages
unidocs-zh
项目概览
项目概览
详情
发布
仓库
仓库
文件
提交
分支
标签
贡献者
分支图
比较
Issue
120
Issue
120
列表
看板
标记
里程碑
合并请求
109
合并请求
109
Pages
DevOps
DevOps
流水线
流水线任务
计划
分析
分析
仓库分析
DevOps
Wiki
0
Wiki
成员
成员
收起侧边栏
关闭侧边栏
动态
分支图
创建新Issue
流水线任务
提交
Issue看板
提交
12306c2b
编写于
5月 04, 2023
作者:
杜庆泉
浏览文件
操作
浏览文件
下载
电子邮件补丁
差异文件
Update syntax-uts.md
上级
45d4511d
变更
1
隐藏空白更改
内联
并排
Showing
1 changed file
with
23 addition
and
23 deletion
+23
-23
docs/tutorial/syntax-uts.md
docs/tutorial/syntax-uts.md
+23
-23
未找到文件。
docs/tutorial/syntax-uts.md
浏览文件 @
12306c2b
...
@@ -2106,7 +2106,7 @@ Math.E 属性表示自然对数的底数(或称为基数),e,约等于 2.
...
@@ -2106,7 +2106,7 @@ Math.E 属性表示自然对数的底数(或称为基数),e,约等于 2.
|JavaScript|Kotlin|Swift|
|JavaScript|Kotlin|Swift|
|:-:|:-:|:-:|
|:-:|:-:|:-:|
|√|
x
|√
`(3.7.1+)`
|
|√|
√
|√
`(3.7.1+)`
|
```
ts
```
ts
function
getNapier
():
number
{
function
getNapier
():
number
{
...
@@ -2124,7 +2124,7 @@ Math.LN10 属性表示 10 的自然对数,约为 2.302。
...
@@ -2124,7 +2124,7 @@ Math.LN10 属性表示 10 的自然对数,约为 2.302。
|JavaScript|Kotlin|Swift|
|JavaScript|Kotlin|Swift|
|:-:|:-:|:-:|
|:-:|:-:|:-:|
|√|
x
|√
`(3.7.1+)`
|
|√|
√
|√
`(3.7.1+)`
|
```
ts
```
ts
function
getNatLog10
():
number
{
function
getNatLog10
():
number
{
...
@@ -2142,7 +2142,7 @@ Math.LN2 属性表示 2 的自然对数,约为 0.693。
...
@@ -2142,7 +2142,7 @@ Math.LN2 属性表示 2 的自然对数,约为 0.693。
|JavaScript|Kotlin|Swift|
|JavaScript|Kotlin|Swift|
|:-:|:-:|:-:|
|:-:|:-:|:-:|
|√|
x
|√
`(3.7.1+)`
|
|√|
√
|√
`(3.7.1+)`
|
```
ts
```
ts
function
getNatLog2
():
number
{
function
getNatLog2
():
number
{
...
@@ -2160,7 +2160,7 @@ Math.LOG10E 属性表示以 10 为底数,e 的对数,约为 0.434。
...
@@ -2160,7 +2160,7 @@ Math.LOG10E 属性表示以 10 为底数,e 的对数,约为 0.434。
|JavaScript|Kotlin|Swift|
|JavaScript|Kotlin|Swift|
|:-:|:-:|:-:|
|:-:|:-:|:-:|
|√|
x
|√
`(3.7.1+)`
|
|√|
√
|√
`(3.7.1+)`
|
```
ts
```
ts
function
getLog10e
():
number
{
function
getLog10e
():
number
{
...
@@ -2178,7 +2178,7 @@ Math.LOG2E 属性表示以 2 为底数,e 的对数,约为 1.442。
...
@@ -2178,7 +2178,7 @@ Math.LOG2E 属性表示以 2 为底数,e 的对数,约为 1.442。
|JavaScript|Kotlin|Swift|
|JavaScript|Kotlin|Swift|
|:-:|:-:|:-:|
|:-:|:-:|:-:|
|√|
x
|√
`(3.7.1+)`
|
|√|
√
|√
`(3.7.1+)`
|
```
ts
```
ts
function
getLog2e
():
number
{
function
getLog2e
():
number
{
...
@@ -2196,7 +2196,7 @@ Math.PI 表示一个圆的周长与直径的比例,约为 3.14159。
...
@@ -2196,7 +2196,7 @@ Math.PI 表示一个圆的周长与直径的比例,约为 3.14159。
|JavaScript|Kotlin|Swift|
|JavaScript|Kotlin|Swift|
|:-:|:-:|:-:|
|:-:|:-:|:-:|
|√|
x
|√
`(3.7.1+)`
|
|√|
√
|√
`(3.7.1+)`
|
```
ts
```
ts
function
calculateCircumference
(
radius
:
number
):
number
{
function
calculateCircumference
(
radius
:
number
):
number
{
...
@@ -2214,7 +2214,7 @@ Math.SQRT1_2 属性表示 1/2 的平方根,约为 0.707。
...
@@ -2214,7 +2214,7 @@ Math.SQRT1_2 属性表示 1/2 的平方根,约为 0.707。
|JavaScript|Kotlin|Swift|
|JavaScript|Kotlin|Swift|
|:-:|:-:|:-:|
|:-:|:-:|:-:|
|√|
x
|√
`(3.7.1+)`
|
|√|
√
|√
`(3.7.1+)`
|
```
ts
```
ts
function
getRoot1_2
():
number
{
function
getRoot1_2
():
number
{
...
@@ -2232,7 +2232,7 @@ Math.SQRT2 属性表示 2 的平方根,约为 1.414。
...
@@ -2232,7 +2232,7 @@ Math.SQRT2 属性表示 2 的平方根,约为 1.414。
|JavaScript|Kotlin|Swift|
|JavaScript|Kotlin|Swift|
|:-:|:-:|:-:|
|:-:|:-:|:-:|
|√|
x
|√
`(3.7.1+)`
|
|√|
√
|√
`(3.7.1+)`
|
```
ts
```
ts
function
getRoot2
():
number
{
function
getRoot2
():
number
{
...
@@ -2251,7 +2251,7 @@ Math.abs(x) 函数返回一个数字的绝对值。
...
@@ -2251,7 +2251,7 @@ Math.abs(x) 函数返回一个数字的绝对值。
|JavaScript|Kotlin|Swift|
|JavaScript|Kotlin|Swift|
|:-:|:-:|:-:|
|:-:|:-:|:-:|
|√|
x
|√
`(3.7.1+)`
|
|√|
√
|√
`(3.7.1+)`
|
```
ts
```
ts
function
difference
(
a
:
number
,
b
:
number
):
number
{
function
difference
(
a
:
number
,
b
:
number
):
number
{
...
@@ -2276,7 +2276,7 @@ Math.acos() 返回一个数的反余弦值(单位为弧度)。
...
@@ -2276,7 +2276,7 @@ Math.acos() 返回一个数的反余弦值(单位为弧度)。
|JavaScript|Kotlin|Swift|
|JavaScript|Kotlin|Swift|
|:-:|:-:|:-:|
|:-:|:-:|:-:|
|√|
x
|√
`(3.7.1+)`
|
|√|
√
|√
`(3.7.1+)`
|
```
ts
```
ts
console
.
log
(
Math
.
acos
(
-
1
));
console
.
log
(
Math
.
acos
(
-
1
));
...
@@ -2297,7 +2297,7 @@ Math.acosh() 函数返回一个数的反双曲余弦值。
...
@@ -2297,7 +2297,7 @@ Math.acosh() 函数返回一个数的反双曲余弦值。
|JavaScript|Kotlin|Swift|
|JavaScript|Kotlin|Swift|
|:-:|:-:|:-:|
|:-:|:-:|:-:|
|√|
x
|√
`(3.7.1+)`
|
|√|
√
|√
`(3.7.1+)`
|
```
ts
```
ts
console
.
log
(
Math
.
acosh
(
1
));
console
.
log
(
Math
.
acosh
(
1
));
...
@@ -2318,7 +2318,7 @@ Math.asin() 方法返回一个数值的反正弦(单位为弧度)。
...
@@ -2318,7 +2318,7 @@ Math.asin() 方法返回一个数值的反正弦(单位为弧度)。
|JavaScript|Kotlin|Swift|
|JavaScript|Kotlin|Swift|
|:-:|:-:|:-:|
|:-:|:-:|:-:|
|√|
x
|√
`(3.7.1+)`
|
|√|
√
|√
`(3.7.1+)`
|
```
ts
```
ts
console
.
log
(
Math
.
asin
(
-
1
));
console
.
log
(
Math
.
asin
(
-
1
));
...
@@ -2342,7 +2342,7 @@ Math.asinh() 返回一个数值的反双曲正弦值。
...
@@ -2342,7 +2342,7 @@ Math.asinh() 返回一个数值的反双曲正弦值。
|JavaScript|Kotlin|Swift|
|JavaScript|Kotlin|Swift|
|:-:|:-:|:-:|
|:-:|:-:|:-:|
|√|
x
|√
`(3.7.1+)`
|
|√|
√
|√
`(3.7.1+)`
|
```
ts
```
ts
console
.
log
(
Math
.
asinh
(
1
));
console
.
log
(
Math
.
asinh
(
1
));
...
@@ -2366,7 +2366,7 @@ Math.atan() 函数返回一个数值的反正切(以弧度为单位)。
...
@@ -2366,7 +2366,7 @@ Math.atan() 函数返回一个数值的反正切(以弧度为单位)。
|JavaScript|Kotlin|Swift|
|JavaScript|Kotlin|Swift|
|:-:|:-:|:-:|
|:-:|:-:|:-:|
|√|
x
|√
`(3.7.1+)`
|
|√|
√
|√
`(3.7.1+)`
|
```
ts
```
ts
console
.
log
(
Math
.
atan
(
1
));
console
.
log
(
Math
.
atan
(
1
));
...
@@ -2384,7 +2384,7 @@ Math.atan2() 返回从原点 (0,0) 到 (x,y) 点的线段与 x 轴正方向之
...
@@ -2384,7 +2384,7 @@ Math.atan2() 返回从原点 (0,0) 到 (x,y) 点的线段与 x 轴正方向之
|JavaScript|Kotlin|Swift|
|JavaScript|Kotlin|Swift|
|:-:|:-:|:-:|
|:-:|:-:|:-:|
|√|
x
|√
`(3.7.1+)`
|
|√|
√
|√
`(3.7.1+)`
|
```
ts
```
ts
console
.
log
(
Math
.
atan2
(
90
,
15
));
console
.
log
(
Math
.
atan2
(
90
,
15
));
...
@@ -2402,7 +2402,7 @@ Math.atanh() 函数返回一个数值反双曲正切值。
...
@@ -2402,7 +2402,7 @@ Math.atanh() 函数返回一个数值反双曲正切值。
|JavaScript|Kotlin|Swift|
|JavaScript|Kotlin|Swift|
|:-:|:-:|:-:|
|:-:|:-:|:-:|
|√|
x
|√
`(3.7.1+)`
|
|√|
√
|√
`(3.7.1+)`
|
```
ts
```
ts
console
.
log
(
Math
.
atanh
(
0
));
console
.
log
(
Math
.
atanh
(
0
));
...
@@ -2420,7 +2420,7 @@ Math.cbrt() 函数返回任意数字的立方根。
...
@@ -2420,7 +2420,7 @@ Math.cbrt() 函数返回任意数字的立方根。
|JavaScript|Kotlin|Swift|
|JavaScript|Kotlin|Swift|
|:-:|:-:|:-:|
|:-:|:-:|:-:|
|√|
x
|√
`(3.7.1+)`
|
|√|
√
|√
`(3.7.1+)`
|
```
ts
```
ts
console
.
log
(
Math
.
cbrt
(
-
1
));
console
.
log
(
Math
.
cbrt
(
-
1
));
...
@@ -2444,7 +2444,7 @@ Math.ceil() 函数总是四舍五入并返回大于等于给定数字的最小
...
@@ -2444,7 +2444,7 @@ Math.ceil() 函数总是四舍五入并返回大于等于给定数字的最小
|JavaScript|Kotlin|Swift|
|JavaScript|Kotlin|Swift|
|:-:|:-:|:-:|
|:-:|:-:|:-:|
|√|
x
|√
`(3.7.1+)`
|
|√|
√
|√
`(3.7.1+)`
|
```
ts
```
ts
console
.
log
(
Math
.
ceil
(
0.95
));
console
.
log
(
Math
.
ceil
(
0.95
));
...
@@ -2469,7 +2469,7 @@ Math.clz32() 函数返回一个数字在转换成 32 无符号整形数字的二
...
@@ -2469,7 +2469,7 @@ Math.clz32() 函数返回一个数字在转换成 32 无符号整形数字的二
|JavaScript|Kotlin|Swift|
|JavaScript|Kotlin|Swift|
|:-:|:-:|:-:|
|:-:|:-:|:-:|
|√|
x
|√
`(3.7.1+)`
|
|√|
√
|√
`(3.7.1+)`
|
```
ts
```
ts
console
.
log
(
Math
.
clz32
(
1
));
console
.
log
(
Math
.
clz32
(
1
));
...
@@ -2494,7 +2494,7 @@ Math.cos() 函数返回一个数值的余弦值。
...
@@ -2494,7 +2494,7 @@ Math.cos() 函数返回一个数值的余弦值。
|JavaScript|Kotlin|Swift|
|JavaScript|Kotlin|Swift|
|:-:|:-:|:-:|
|:-:|:-:|:-:|
|√|
x
|√
`(3.7.1+)`
|
|√|
√
|√
`(3.7.1+)`
|
```
ts
```
ts
console
.
log
(
Math
.
cos
(
0
));
console
.
log
(
Math
.
cos
(
0
));
...
@@ -2512,7 +2512,7 @@ Math.cosh() 函数返回数值的双曲余弦函数。
...
@@ -2512,7 +2512,7 @@ Math.cosh() 函数返回数值的双曲余弦函数。
|JavaScript|Kotlin|Swift|
|JavaScript|Kotlin|Swift|
|:-:|:-:|:-:|
|:-:|:-:|:-:|
|√|
x
|√
`(3.7.1+)`
|
|√|
√
|√
`(3.7.1+)`
|
```
ts
```
ts
console
.
log
(
Math
.
cosh
(
0
));
console
.
log
(
Math
.
cosh
(
0
));
...
@@ -2533,7 +2533,7 @@ Math.exp() 函数返回 e^x,x 表示参数,e 是欧拉常数(Euler's const
...
@@ -2533,7 +2533,7 @@ Math.exp() 函数返回 e^x,x 表示参数,e 是欧拉常数(Euler's const
|JavaScript|Kotlin|Swift|
|JavaScript|Kotlin|Swift|
|:-:|:-:|:-:|
|:-:|:-:|:-:|
|√|
x
|√
`(3.7.1+)`
|
|√|
√
|√
`(3.7.1+)`
|
```
ts
```
ts
console
.
log
(
Math
.
exp
(
-
1
));
console
.
log
(
Math
.
exp
(
-
1
));
...
@@ -2554,7 +2554,7 @@ Math.expm1() 函数返回 E^x - 1, 其中 x 是该函数的参数,E 是自然
...
@@ -2554,7 +2554,7 @@ Math.expm1() 函数返回 E^x - 1, 其中 x 是该函数的参数,E 是自然
|JavaScript|Kotlin|Swift|
|JavaScript|Kotlin|Swift|
|:-:|:-:|:-:|
|:-:|:-:|:-:|
|√|
x
|√
`(3.7.1+)`
|
|√|
√
|√
`(3.7.1+)`
|
```
ts
```
ts
console
.
log
(
Math
.
expm1
(
1
));
console
.
log
(
Math
.
expm1
(
1
));
...
...
编辑
预览
Markdown
is supported
0%
请重试
或
添加新附件
.
添加附件
取消
You are about to add
0
people
to the discussion. Proceed with caution.
先完成此消息的编辑!
取消
想要评论请
注册
或
登录