JavaScript Math toSource 方法 返回 Math 对象源代码的字符串。 JavaScript Math toSource 方法语法 Math.toSource();JavaScriptCopy 注: 该方法在 Internet Explorer 中无效。 JavaScript Math toSource 方法示例 var s = Math.toSource(); console.log( s ); console.log( typeof s );JavaScriptCopy JavaScript Math toSource 方法结果 >>> Math stringJavaScriptCopy