log 方法

返回数字的自然对数。

Math.log(number)

必选项 number 参数是要计算自然对数的数值表达式。

返回值

返回值为 number 的自然对数,底为 e

要求

版本 1

请参阅

Math 对象方法

应用于: Math 对象