目录

toSource()

描述 (Description)

此方法返回字符串“Math”。 但是这种方法不适用于IE。

语法 (Syntax)

其语法如下 -

Math.toSource() ;

返回值 (Return Value)

返回字符串“Math”。

例子 (Example)

请尝试以下示例程序。

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

输出 (Output)

Value : Math 
↑回到顶部↑
WIKI教程 @2018