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

javascript_math_object.html