此方法導致要顯示在一個小的字體,就好像它是在一個<small>標記的字串。
語法
string.small( )
下麵是參數的詳細資訊:
-
NA
返回值:
-
返回字串<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>
