返回X的基数10对数。
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