fixed() 方法用于把字符串显示为打字机字体。
stringObject.fixed()
在本例中,"Hello world!" 将被显示为打字机文本:
<html><body><script type="text/javascript">var str="Hello world!"document.write(str.fixed())</script></body></html>
<html>
<body>
<script type="text/javascript">
var str="Hello world!"
document.write(str.fixed())
</script>
</body>
</html>