首页 > 学院 > 开发设计 > 正文

fixed 方法

2019-11-17 06:02:40
字体:
来源:转载
供稿:网友

 

把 HTML <TT> 标记放置在 String 对象中的文本两端。

strVariable.fixed( )

必选项 strVariable 参数为任意的 String 对象或文字。

说明

下面的示例说明了 fixed 方法如何工作:

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

最后一条语句执行完后,strVariable 的值是:

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

不检查该标记是否已经被应用于该字符串了。



上一篇:exp 方法

下一篇:cos 方法

发表评论 共有条评论
用户名: 密码:
验证码: 匿名发表