JavaScript – Math toSource方法 描述 该方法返回字符串”Math”。但是该方法不适用于IE。 语法 其语法如下 – Math.toSource();HTMLCopy 返回值 返回字符串”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> HTMLCopy 输出 Value: MathHTMLCopy