返回X的以10为底的对数。
Math.log10(x) - 语法
Math.log10(x)
- x - 代表数字
Math.log10(x) - 示例
console.log("---Math.log10()---") console.log("Math.log10(10): "+Math.log10(10)) console.log("Math.log10(16.7): "+Math.log10(10))
运行上面代码输出
---Math.log10()--- Math.log10(10): 1 Math.log10(16.7): 1
















