JavaScript 字串 - big() 方法



描述

此方法使字串以大字型顯示,就像在 BIG 標籤中一樣。

語法

使用 big() 的語法如下:

string.big( )

返回值

返回帶有<big>標籤的字串。

示例

嘗試以下示例。

<html>
   <head>
      <title>JavaScript String big() Method</title>
   </head>
   
   <body>   
      <script type = "text/javascript">
         var str = new String("Hello world");
         alert(str.big());
      </script>      
   </body>
</html>

輸出

<big>Hello world</big>
javascript_strings_object.htm
廣告