此方法返回字符串“ Math”。 但是此方法不适用于IE。
Math.toSource() ;
返回字符串“ Math”。
<html> <head> <title>JavaScript Math toSource() Method</title> </head> <body> <script type="text/javascript"> var value=Math.toSource( ); document.write("Value : " + value ); </script> </body> </html>
运行上面代码输出
链接:https://www.learnfk.comhttps://www.learnfk.com/javascript/math-tosource.html
来源:LearnFk无涯教程网
Value : Math
祝学习愉快!(内容编辑有误?请选中要编辑内容 -> 右键 -> 修改 -> 提交!)
HarmonyOS快速入门与实战 -〔QCon+案例研习社〕