Please note, this is a STATIC archive of website developer.mozilla.org from 03 Nov 2016, cach3.com does not collect or store any user information, there is no "phishing" involved.

Number.prototype.toSource()

非標準
This feature is non-standard and is not on a standards track. Do not use it on production sites facing the Web: it will not work for every user. There may also be large incompatibilities between implementations and the behavior may change in the future.

概要

オブジェクトのソースコードを表す文字列を返します。

構文

number.toSource()

引数

無し。

説明

toSource メソッドは以下の値を返します。:

  • 組み込み Number オブジェクトでは、 toSource はソースコードが存在しないことを示す以下の文字列を返します。:
function Number() {[native code]}
  • Number オブジェクトのインスタンスでは、 toSource はそのソースコードを表す文字列を返します。

このメソッドは、通常、 JavaScript によって内部的に呼ばれ、コード中で明示的には呼ばれません。

参照

Object.prototype.toSource

ドキュメントのタグと貢献者

 このページの貢献者: teoli, ethertank, Potappo
 最終更新者: teoli,