Home >Web Front-end >JS Tutorial >javascript big()方法将字符串显示为大号字体

javascript big()方法将字符串显示为大号字体

WBOY
WBOYOriginal
2016-06-01 09:54:411383browse

big 方法把 HTML 标记放置在 String 对象中的文本两端。

基本语法

<code class="language-javascript">strVariable.big()</code>

必选项 strVariable 参数可以是任意的 String 对象或文字。

说明

下面示例说明了 big 方法是如何工作的:

<code class="language-javascript">var strVariable = "This is a string object"; 
strVariable = strVariable.big( );</code>

在执行完最后一个语句后,strVariable 的值为:

<code class="language-javascript"><big>This is a string object</big></code>

该函数不检查该标记是否已经被应用于该字符串了。 

Statement:
The content of this article is voluntarily contributed by netizens, and the copyright belongs to the original author. This site does not assume corresponding legal responsibility. If you find any content suspected of plagiarism or infringement, please contact admin@php.cn