此方法使字符串以小字体显示,就好像它在<small>标签中一样。
string.small( )
返回带有<small>标签的字符串。
<html> <head> <title>JavaScript String small() Method</title> </head> <body> <script type="text/javascript"> var str=new String("Hello world"); alert(str.small()); </script> </body> </html>
运行上面代码输出
链接:https://www.learnfk.comhttps://www.learnfk.com/javascript/string-small.html
来源:LearnFk无涯教程网
<small>Hello world</small>
祝学习愉快!(内容编辑有误?请选中要编辑内容 -> 右键 -> 修改 -> 提交!)