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.

Boolean.prototype.toSource()

Non-standard
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.

Resum

El mètode toSource() retorna una cadena de caràcters que representa el codi font de l'objecte.

Sintaxi

booleanObj.toSource()
Boolean.toSource()

Paràmetres

Cap.

Descripció

El mètode toSource retorna els valors següents:

  • Per a objectes Boolean de la implementació de JavaScript, toSource retorna la següent cadena de caràcters indicant que el codi font no està disponible:
    function Boolean() {
        [native code]
    }
    
  • Per a instàncies de Boolean, toSource retorna una cadena de caràcters que representa el codi font.

Aquest mètode normalment és utilitzat internament per JavaScript i no explícitament al codi.

Especificacions

No forma part de cap standard. Implementat a JavaScript 1.3.

Compatibilitat amb navegadors

Característica Chrome Firefox (Gecko) Internet Explorer Opera Safari
Suport bàsic ? (Yes) ? ? ?
Característica Android Chrome for Android Firefox Mobile (Gecko) IE Mobile Opera Mobile Safari Mobile
Suport bàsic ? ? (Yes) ? ? ?

Vegeu també

Document Tags and Contributors

 Contributors to this page: teoli, enTropy
 Last updated by: teoli,