JavaScript bold() 方法
返回JavaScript String 对象参考手册(目录)
定义和用法
bold() 方法用于把字符串显示为粗体。
语法
stringObject.bold()
实例
在本例中,"Hello world!" 将被显示为粗体:
<script type="text/javascript">
var str="Hello world!"
document.write(str.bold())
</script>
微信扫一扫
返回JavaScript String 对象参考手册(目录)
bold() 方法用于把字符串显示为粗体。
stringObject.bold()
在本例中,"Hello world!" 将被显示为粗体:
<script type="text/javascript">
var str="Hello world!"
document.write(str.bold())
</script>
相关推荐