发布于 2015-07-31 15:11:42 | 153 次阅读 | 评论: 0 | 来源: 网络整理

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

语法


Math.LOG2E

例子:


<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>

这将产生以下结果:


Property Value is : 1.4426950408889633 
最新网友评论  共有(0)条评论 发布评论 返回顶部

Copyright © 2007-2017 PHPERZ.COM All Rights Reserved   冀ICP备14009818号  版权声明  广告服务