JavaScript String fixed() 方法

定義和用法

字符串 fixed() 在 JavaScript 中已被棄用。

請避免使用它。

它可能隨時停止在您的瀏覽器中運行。

fixed() 方法返回嵌入在 <tt> 標記中的字符串:

<tt>string</tt>

HTML5 不支持 <tt> 標簽。

實例

let text = "Hello World!";
let result = text.fixed();

親自試一試

語法

string.fixed()

參數

無參數。

返回值

嵌入在 <tt> 標記中的字符串。