• toSource 方法
    • 语法:
    • 注:
      • 示例:
      • 结果:

    toSource 方法

    返回 Math 对象源代码的字符串。

    语法:
    1. Math.toSource();
    注:

    该方法在 Internet Explorer 中无效。

    示例:
    1. var s = Math.toSource();
    2. console.log( s );
    3. console.log( typeof s );
    结果:
    1. >>>
    2. Math
    3. string