snowfox373 2007-12-9 21:45
JavaScript中small函数
JavaScript中small函数方法是将 HTML 的 标识添加到String 对象中的文本两端。使用方法:[code]strVariable.small( )
Apw`;EJ3g
"String Literal".small( ) [/code]下面的示例演示了 JavaScript中small函数方法是如何使用的:[code]var strVariable = "This is a string"; 1\x+U{(JD kp7I!v
strVariable = strVariable.small( ); [/code] 在上一条语句之后 strVariable 的值为:[code]<SMALL>This is a string</SMALL> [/code] 不检查该标识是否已应用于该字符串了。