您现在的位置: 万盛学电脑网 >> 程序编程 >> 脚本专题 >> javascript >> 正文

JavaScript中的Math.LOG2E属性使用详解

作者:佚名    责任编辑:admin    更新时间:2022-06-22

 这将返回基数2的对数e,大约是 1.442.

语法

1 Math.LOG2E

例子:

1 2 3 4 5 6 7 8 9 10 11 <html> <head> <title>JavaScript Math LOG2E Property</title> </head> <body> <script type="text/javascript"> var property_value = Math.LOG2E document.write("Property Value is : " + property_value); </script> </body> </html>

这将产生以下结果:

1 Property Value is : 1.4426950408889633