非标准
该特性是非标准的,请尽量不要在生产环境中使用它!

概述

toSource() 方法返回该对象源码的字符串表示。

语法

numObj.toSource();
Number.toSource();

参数

描述

toSource() 方法返回下列值:

function Number() { [native code] }

该方法通常被 JavaScript 内部调用,而不是在代码中显示调用。

规范

不是任何标准的一部分。在 JavaScript 1.3 被实现。

浏览器兼容性

We're converting our compatibility data into a machine-readable JSON format. This compatibility table still uses the old format, because we haven't yet converted the data it contains. Find out how you can help!

Feature Chrome Firefox (Gecko) Internet Explorer Opera Safari
Basic support ? (Yes) ? ? ?
Feature Android Chrome for Android Firefox Mobile (Gecko) IE Mobile Opera Mobile Safari Mobile
Basic support ? ? (Yes) ? ? ?

相关链接