JavaScript fixed() 方法

定义和用法
fixed() 方法用于把字符串显示为打字机字体。
该方法返回加了 <tt> 标签的字符串, 如下所示:
<tt>string</tt>
语法
string.fixed()
浏览器支持
所有主要浏览器都支持 fixed() 方法。
实例

fixed() 方法用于把字符串显示为打字机字体。
该方法返回加了 <tt> 标签的字符串, 如下所示:
<tt>string</tt>
所有主要浏览器都支持 fixed() 方法。