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

bold 方法

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

 

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

strVariable.bold()

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

说明

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

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

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

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

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



上一篇:big 方法

下一篇:compile 方法

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