⭐ 欢迎来到虫虫下载站! | 📦 资源下载 📁 资源专辑 ℹ️ 关于我们
⭐ 虫虫下载站

📄 string.html

📁 ajax开发框架prototype中文说明帮助
💻 HTML
📖 第 1 页 / 共 5 页
字号:
public <B>String</B>()</PRE>
<DL>
<DD>默认构造方法
<P>
</DL>
<HR>

<A NAME="String(net.conic.prototype.String)"><!-- --></A><H3>
String</H3>
<PRE>
public <B>String</B>(<A HREF="../../../net/conic/prototype/String.html" title="net.conic.prototype 中的类">String</A>&nbsp;s)</PRE>
<DL>
<DD>带初始值的构造方法
<P>
<DL>
<DT><B>参数:</B><DD><CODE>s</CODE> - 初始值,</DL>
</DL>

<!-- ============ METHOD DETAIL ========== -->

<A NAME="method_detail"><!-- --></A>
<TABLE BORDER="1" WIDTH="100%" CELLPADDING="3" CELLSPACING="0" SUMMARY="">
<TR BGCOLOR="#CCCCFF" CLASS="TableHeadingColor">
<TH ALIGN="left" COLSPAN="1"><FONT SIZE="+2">
<B>方法详细信息</B></FONT></TH>
</TR>
</TABLE>

<A NAME="anchor(net.conic.prototype.String)"><!-- --></A><H3>
anchor</H3>
<PRE>
public <A HREF="../../../net/conic/prototype/String.html" title="net.conic.prototype 中的类">String</A> <B>anchor</B>(<A HREF="../../../net/conic/prototype/String.html" title="net.conic.prototype 中的类">String</A>&nbsp;anchorName)</PRE>
<DL>
<DD>创建HTML标准的&lt;A>对象
<P>
<DD><DL>
<DT><B>参数:</B><DD><CODE>anchorName</CODE> - 
<DT><B>返回:</B><DD>String          <p><b>Example:</b></p><pre>        var myString = "AnchorText";        alert( myString.anchor( "anchorName" ) );    //<A NAME="anchorName">AnchorText</A>                </pre></DL>
</DD>
</DL>
<HR>

<A NAME="big()"><!-- --></A><H3>
big</H3>
<PRE>
public <A HREF="../../../net/conic/prototype/String.html" title="net.conic.prototype 中的类">String</A> <B>big</B>()</PRE>
<DL>
<DD>把 HTML &lt;BIG> 标记放置在 String 对象中的文本两端
<P>
<DD><DL>

<DT><B>返回:</B><DD>String <p><b>Example:</b></p><pre>        var myString = "Biger text";        alert( myString.big() );    //&lt;BIG&gt;Biger text&lt;/BIG&gt;</pre></DL>
</DD>
</DL>
<HR>

<A NAME="blink()"><!-- --></A><H3>
blink</H3>
<PRE>
public <A HREF="../../../net/conic/prototype/String.html" title="net.conic.prototype 中的类">String</A> <B>blink</B>()</PRE>
<DL>
<DD>把 HTML &lt;Blink> 标记放置在 String 对象中的文本两端
<P>
<DD><DL>

<DT><B>返回:</B><DD>String <p><b>Example:</b></p><pre>        var myString = "blink text";        alert( myString.blink() );    //&lt;Blink&gt;blink text&lt;/Blink&gt;</pre></DL>
</DD>
</DL>
<HR>

<A NAME="bold()"><!-- --></A><H3>
bold</H3>
<PRE>
public <A HREF="../../../net/conic/prototype/String.html" title="net.conic.prototype 中的类">String</A> <B>bold</B>()</PRE>
<DL>
<DD>把 HTML &lt;B> 标记放置在 String 对象中的文本两端
<P>
<DD><DL>

<DT><B>返回:</B><DD>String <p><b>Example:</b></p><pre>        var myString = "bold text";        alert( myString.bold() );    //&lt;B&gt;bold text&lt;/B&gt;</pre></DL>
</DD>
</DL>
<HR>

<A NAME="sup()"><!-- --></A><H3>
sup</H3>
<PRE>
public <A HREF="../../../net/conic/prototype/String.html" title="net.conic.prototype 中的类">String</A> <B>sup</B>()</PRE>
<DL>
<DD>把 HTML &lt;SUP> 标记放置在 String 对象中的文本两端
<P>
<DD><DL>

<DT><B>返回:</B><DD>String <p><b>Example:</b></p><pre>        var myString = "sup text";        alert( myString.sup() );    //&lt;SUP&gt;sup text&lt;/SUP&gt;</pre></DL>
</DD>
</DL>
<HR>

<A NAME="strike()"><!-- --></A><H3>
strike</H3>
<PRE>
public <A HREF="../../../net/conic/prototype/String.html" title="net.conic.prototype 中的类">String</A> <B>strike</B>()</PRE>
<DL>
<DD>把 HTML &lt;STRIKE> 标记放置在 String 对象中的文本两端
<P>
<DD><DL>

<DT><B>返回:</B><DD>String <p><b>Example:</b></p><pre>        var myString = "STRIKE text";        alert( myString.strike() );    //&lt;STRIKE&gt;strike text&lt;/STRIKE&gt;</pre></DL>
</DD>
</DL>
<HR>

<A NAME="sub()"><!-- --></A><H3>
sub</H3>
<PRE>
public <A HREF="../../../net/conic/prototype/String.html" title="net.conic.prototype 中的类">String</A> <B>sub</B>()</PRE>
<DL>
<DD>把 HTML &lt;SUB> 标记放置在 String 对象中的文本两端
<P>
<DD><DL>

<DT><B>返回:</B><DD>String <p><b>Example:</b></p><pre>        var myString = "SUB text";        alert( myString.sub() );    //&lt;SUB&gt;strike text&lt;/SUB&gt;</pre></DL>
</DD>
</DL>
<HR>

<A NAME="italics()"><!-- --></A><H3>
italics</H3>
<PRE>
public <A HREF="../../../net/conic/prototype/String.html" title="net.conic.prototype 中的类">String</A> <B>italics</B>()</PRE>
<DL>
<DD>把 HTML &lt;I> 标记放置在 String 对象中的文本两端。
<P>
<DD><DL>

<DT><B>返回:</B><DD>String <p><b>Example:</b></p><pre>        var myString = "italics text";        alert( myString.italics() );    //&lt;I&gt;italics text&lt;/I&gt;</pre></DL>
</DD>
</DL>
<HR>

<A NAME="link(net.conic.prototype.String)"><!-- --></A><H3>
link</H3>
<PRE>
public <A HREF="../../../net/conic/prototype/String.html" title="net.conic.prototype 中的类">String</A> <B>link</B>(<A HREF="../../../net/conic/prototype/String.html" title="net.conic.prototype 中的类">String</A>&nbsp;href)</PRE>
<DL>
<DD>把一个有 HREF 属性的 HTML 锚点放置在 String 对象中的文本两端。
<P>
<DD><DL>
<DT><B>参数:</B><DD><CODE>href</CODE> - 链接地址
<DT><B>返回:</B><DD>String <p><b>Example:</b></p><pre>        var strVariable = "This is a hyperlink";        //显示&lt;A HREF="http://www.microsoft.com">This is a hyperlink&lt;/A>        alert(strVariable.link("http://www.microsoft.com"));</pre></DL>
</DD>
</DL>
<HR>

<A NAME="small()"><!-- --></A><H3>
small</H3>
<PRE>
public <A HREF="../../../net/conic/prototype/String.html" title="net.conic.prototype 中的类">String</A> <B>small</B>()</PRE>
<DL>
<DD>将 HTML 的<SMALL> 标识添加到String 对象中的文本两端。
<P>
<DD><DL>

<DT><B>返回:</B><DD>String <p><b>Example:</b></p><pre>        var strVariable = "This is a string";        //&lt;SMALL>This is a string&lt;/SMALL>        alert( strVariable.small( ));</pre></DL>
</DD>
</DL>
<HR>

<A NAME="fixed()"><!-- --></A><H3>
fixed</H3>
<PRE>
public <A HREF="../../../net/conic/prototype/String.html" title="net.conic.prototype 中的类">String</A> <B>fixed</B>()</PRE>
<DL>
<DD>把 HTML &lt;TT> 标记放置在 String 对象中的文本两端
<P>
<DD><DL>

<DT><B>返回:</B><DD>String <p><b>Example:</b></p><pre>        var myString = "fixed text";        alert( myString.fixed() );    //&lt;TT&gt;bold text&lt;/TT&gt;</pre></DL>
</DD>
</DL>
<HR>

<A NAME="fontcolor(net.conic.prototype.String)"><!-- --></A><H3>
fontcolor</H3>
<PRE>
public <A HREF="../../../net/conic/prototype/String.html" title="net.conic.prototype 中的类">String</A> <B>fontcolor</B>(<A HREF="../../../net/conic/prototype/String.html" title="net.conic.prototype 中的类">String</A>&nbsp;color)</PRE>
<DL>
<DD>把带有 COLOR 属性的一个 HTML &lt;FONT> 标记放置在 String 对象中的文本两端。
<P>
<DD><DL>
<DT><B>参数:</B><DD><CODE>color</CODE> - 颜色值
<DT><B>返回:</B><DD>String <p><b>Example:</b></p><pre>var myString = "Colored text";//&lt;font color="blue">Colored text&lt;/font>document.write( myString.fontcolor( "blue" ) );</pre></DL>
</DD>
</DL>
<HR>

<A NAME="fontsize(int)"><!-- --></A><H3>
fontsize</H3>
<PRE>
public <A HREF="../../../net/conic/prototype/String.html" title="net.conic.prototype 中的类">String</A> <B>fontsize</B>(int&nbsp;size)</PRE>
<DL>
<DD>把一个带有 SIZE 属性的 HTML &lt;FONT> 标记放置在 String 对象中的文本的两端。
<P>
<DD><DL>
<DT><B>参数:</B><DD><CODE>size</CODE> - 
<DT><B>返回:</B><DD><p><b>Example:</b></p><pre>        var myString = "Resized text";        //&lt;FONT SIZE=4>Resized text&lt;/FONT>        document.write( myString.fontsize( 4 ) );</DL>
</DD>
</DL>
<HR>

<A NAME="charAt(int)"><!-- --></A><H3>
charAt</H3>
<PRE>
public <A HREF="../../../net/conic/prototype/String.html" title="net.conic.prototype 中的类">String</A> <B>charAt</B>(int&nbsp;index)</PRE>
<DL>
<DD>返回指定索引位置处的字符。
<P>
<DD><DL>
<DT><B>参数:</B><DD><CODE>index</CODE> - 索引号

⌨️ 快捷键说明

复制代码 Ctrl + C
搜索代码 Ctrl + F
全屏模式 F11
切换主题 Ctrl + Shift + D
显示快捷键 ?
增大字号 Ctrl + =
减小字号 Ctrl + -