W3School TIY Editor
W3School 在线教程
改变方向
暗黑模式
运行代码
<!DOCTYPE html> <html> <body> <p>单击该按钮可显示 Math.expm1() 在不同数字上的结果。</p> <button onclick="myFunction()">试一试</button> <p id="demo"></p> <script> function myFunction() { var a = Math.expm1(1); var b = Math.expm1(-1); var c = Math.expm1(5); var d = Math.expm1(10); var x = a + "<br>" + b + "<br>" + c + "<br>" + d; document.getElementById("demo").innerHTML = x; } </script> </body> </html>