?
This document uses PHP Chinese website manual Release
JScript? | 語(yǔ)言參考 |
將 HTML 的 <SUB> 標(biāo)識(shí)放置到 String 對(duì)象中的文本兩端。
strVariable.sub(?)
"String Literal".sub(?)
下面的示例演示了 sub 方法是如何使用的:
var strVariable = "This is a string object";
strVariable = strVariable.sub(?);
在執(zhí)行上一條語(yǔ)句后 strVariable 的值為:
<SUB>This is a string object</SUB>
不檢查該標(biāo)識(shí)是否已應(yīng)用于該字符串了。
版本 1
String 對(duì)象的方法 | String 對(duì)象的屬性 | sup 方法
應(yīng)用于: String 對(duì)象