Javascript String.small()方法
作者:--
发布时间:2019-11-20
评论:0
阅读:0
此方法导致要显示在一个小的字体,就好像它是在一个<small>标记的字符串。
语法
string.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>
这将产生以下结果:
<small>hello world</small>