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) | ? | ? | ? |