Javascript Math.toSource()方法

這個方法返回字串“Math”。但這種方法不能在許多流覽器使用,如IE流覽器。

語法

Math.toSource() ;

下麵是參數的詳細資訊:

  • NA

返回值:

返回字串 "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

 


上一篇: Javascript Math.tan()方法 下一篇: 正則運算式和RegExp對象