fixed()

优质
小牛编辑
122浏览
2023-12-01

fixed 方法

把字符串显示为打字机字体。

语法:

  stringObject.fixed();

示例:

  var Str = "graybobo",
      s = Str.fixed();

  console.log( s );

结果:

  >>>
  <tt>graybobo</tt>