精华区 [关闭][返回]

当前位置:月光软件>>讨论区精华>>〖软件开发〗>>● ASP>>★JSP的参考★>>JScript 方法>>JScript 语言参考: fixed 方法

主题:JScript 语言参考: fixed 方法
发信人: wuga(冰雨梦)
整理人: wuga(2001-11-30 11:00:34), 站内信件
描述

    把 HTML <TT> 标记放置在 String 对象中的文本两端。

语法

    strVariable.fixed( )

    "String Literal".fixed( ) 

说明

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

    var strVariable = "This is a string object";

    strVariable = strVariable.fixed( );

    最后一条语句执行完后,strVariable 的值是: 

    <TT>This is a string object</TT>

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

[关闭][返回]






转载请注明:转载自 月光程序代码网 [ http://www.moon-soft.com ]