Javascript-math-tosource

提供:Dev Guides
2020年6月23日 (火) 09:40時点におけるMaintenance script (トーク | 投稿記録)による版 (Imported from text file)
(差分) ← 古い版 | 最新版 (差分) | 新しい版 → (差分)
移動先:案内検索

JavaScript-Math toSourceメソッド

説明

このメソッドは、文字列「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>

出力

Value : Math