Share via


Metodo fixed

Restituisce una stringa in cui il testo di un oggetto String è racchiuso tra i tag HTML <TT>.

function fixed() : String

Note

Non viene verificato se il tag è già stato applicato alla stringa.

Esempio

Nell'esempio seguente viene illustrato l'utilizzo del metodo fixed.

var strVariable = "This is a string object";
strVariable = strVariable.fixed();

Il valore di strVariable dopo l'ultima istruzione è:

<TT>This is a string object</TT>

Requisiti

Versione 1

Si applica a:

Oggetto String

Vedere anche

Altre risorse

Metodi