查看完整版本: JavaScript中small函数

snowfox373 2007-12-9 21:45

JavaScript中small函数

  JavaScript中small函数方法是将 HTML 的 标识添加到String 对象中的文本两端。使用方法:[code]strVariable.small( ) Z,K n9{I6l
"String Literal".small( ) [/code]下面的示例演示了 JavaScript中small函数方法是如何使用的:[code]var strVariable = "This is a string";
S!A7ng3Q?4F strVariable = strVariable.small( ); [/code]  在上一条语句之后 strVariable 的值为:[code]<SMALL>This is a string</SMALL> [/code] 不检查该标识是否已应用于该字符串了。
页: [1]
查看完整版本: JavaScript中small函数