js 获取最大公约数

gcd(a, b) { if (b == 0) { return a } let r = a % b console.log(r) return this.gcd(b, r) },    
相关文章
相关标签/搜索