📄 string.html
字号:
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> 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> anchorName)</PRE>
<DL>
<DD>创建HTML标准的<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 <BIG> 标记放置在 String 对象中的文本两端
<P>
<DD><DL>
<DT><B>返回:</B><DD>String <p><b>Example:</b></p><pre> var myString = "Biger text"; alert( myString.big() ); //<BIG>Biger text</BIG></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 <Blink> 标记放置在 String 对象中的文本两端
<P>
<DD><DL>
<DT><B>返回:</B><DD>String <p><b>Example:</b></p><pre> var myString = "blink text"; alert( myString.blink() ); //<Blink>blink text</Blink></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 <B> 标记放置在 String 对象中的文本两端
<P>
<DD><DL>
<DT><B>返回:</B><DD>String <p><b>Example:</b></p><pre> var myString = "bold text"; alert( myString.bold() ); //<B>bold text</B></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 <SUP> 标记放置在 String 对象中的文本两端
<P>
<DD><DL>
<DT><B>返回:</B><DD>String <p><b>Example:</b></p><pre> var myString = "sup text"; alert( myString.sup() ); //<SUP>sup text</SUP></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 <STRIKE> 标记放置在 String 对象中的文本两端
<P>
<DD><DL>
<DT><B>返回:</B><DD>String <p><b>Example:</b></p><pre> var myString = "STRIKE text"; alert( myString.strike() ); //<STRIKE>strike text</STRIKE></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 <SUB> 标记放置在 String 对象中的文本两端
<P>
<DD><DL>
<DT><B>返回:</B><DD>String <p><b>Example:</b></p><pre> var myString = "SUB text"; alert( myString.sub() ); //<SUB>strike text</SUB></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 <I> 标记放置在 String 对象中的文本两端。
<P>
<DD><DL>
<DT><B>返回:</B><DD>String <p><b>Example:</b></p><pre> var myString = "italics text"; alert( myString.italics() ); //<I>italics text</I></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> 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"; //显示<A HREF="http://www.microsoft.com">This is a hyperlink</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"; //<SMALL>This is a string</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 <TT> 标记放置在 String 对象中的文本两端
<P>
<DD><DL>
<DT><B>返回:</B><DD>String <p><b>Example:</b></p><pre> var myString = "fixed text"; alert( myString.fixed() ); //<TT>bold text</TT></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> color)</PRE>
<DL>
<DD>把带有 COLOR 属性的一个 HTML <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";//<font color="blue">Colored text</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 size)</PRE>
<DL>
<DD>把一个带有 SIZE 属性的 HTML <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"; //<FONT SIZE=4>Resized text</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 index)</PRE>
<DL>
<DD>返回指定索引位置处的字符。
<P>
<DD><DL>
<DT><B>参数:</B><DD><CODE>index</CODE> - 索引号
⌨️ 快捷键说明
复制代码
Ctrl + C
搜索代码
Ctrl + F
全屏模式
F11
切换主题
Ctrl + Shift + D
显示快捷键
?
增大字号
Ctrl + =
减小字号
Ctrl + -