Skip to content
ONO的在线文档库
搜索
K
Main Navigation
Home
Docs
快速开始
components
hooks
utils
Vite插件
Examples
Appearance
Menu
Return to top
本页导航
gcd
计算最大公约数
示例
ts
const
a
=
10
const
b
=
20
const
c
=
5
gcd
(a, b)
// 10
gcd
(b, c)
// 5
参数
参数
说明
类型
默认值
是否必填
num1
第一个数
number
-
是
num2
第二个数
number
-
是