?? boolean.html
字號:
</FONT><BR><A NAME="1193208"> </A><FONT FACE="Arial, Helvetica, sans-serif" SIZE="2"><zparagraph><BR><P><TABLE WIDTH="90%" BORDER="1" CELLPADDING="5" CELLSPACING="0"> <CAPTION></CAPTION><P><FONT FACE=""><B></B></FONT><BR><BR> <TR BGCOLOR="#CCCCCC" ALIGN=LEFT VALIGN=TOP> <TH VALIGN=TOP ALIGN=LEFT><A NAME="1193191"> </A><P ALIGN="LEFT"><FONT FACE="Arial, Helvetica, sans-serif" SIZE="2"><B><ztablehead>Method</ztablehead></B></FONT></TH> <TH VALIGN=TOP ALIGN=LEFT><A NAME="1193193"> </A><P ALIGN="LEFT"><FONT FACE="Arial, Helvetica, sans-serif" SIZE="2"><B><ztablehead>Description</ztablehead></B></FONT></TH> </DIV></TR> <TR> <TD VALIGN=TOP><A NAME="1193198"></A><FONT FACE="courier, couriernew, monospaced size" SIZE="2"><zcodeline><A HREF="boolean.html#1193426" >toSource</A></zcodeline></FONT><P> </TD> <TD VALIGN=TOP><P><A NAME="1193200"> </A><FONT FACE="Arial, Helvetica, sans-serif" SIZE="2"><ztabletext>Returns an object literal representing the specified Boolean object; you can use this value to create a new object. Overrides the <A HREF="object.html#1193320" >Object.toSource</A> method.</ztabletext></FONT> </TD> </TR> <TR> <TD VALIGN=TOP><A NAME="1193205"></A><FONT FACE="courier, couriernew, monospaced size" SIZE="2"><zcodeline><A HREF="boolean.html#1193269" >toString</A></zcodeline></FONT><P> </TD> <TD VALIGN=TOP><P><A NAME="1193207"> </A><FONT FACE="Arial, Helvetica, sans-serif" SIZE="2"><ztabletext>Returns a string representing the specified object. Overrides the <A HREF="object.html#1193350" >Object.toString</A> method.</ztabletext></FONT> </TD> </TR> <TR> <TD VALIGN=TOP><A NAME="1194814"></A><FONT FACE="courier, couriernew, monospaced size" SIZE="2"><zcodeline><A HREF="boolean.html#1195085" >valueOf</A></zcodeline></FONT><P> </TD> <TD VALIGN=TOP><P><A NAME="1194816"> </A><FONT FACE="Arial, Helvetica, sans-serif" SIZE="2"><ztabletext>Returns the primitive value of a Boolean object. Overrides the <A HREF="object.html#1193540" >Object.valueOf</A> method.</ztabletext></FONT> </TD> </TR></TABLE><P></zparagraph></FONT><P><A NAME="1195376"> </A><FONT FACE="Arial, Helvetica, sans-serif" SIZE="2"><zparagraph>In addition, this object inherits the <A HREF="object.html#1193628" >watch</A> and <A HREF="object.html#1193499" >unwatch</A> methods from <A HREF="object.html#1193136" >Object</A>.</zparagraph></FONT><P><BR><A NAME="1193209"> </A><A NAME="Examples"> </A><FONT FACE="Arial, Helvetica, sans-serif" SIZE="2"><B><zrefheader>Examples</zrefheader></B></FONT><BR><A NAME="1193210"> </A><FONT FACE="Arial, Helvetica, sans-serif" SIZE="2"><zparagraph>The following examples create <FONT FACE="courier, couriernew, monospaced size">Boolean</FONT> objects with an initial value of false:</zparagraph></FONT><P><A NAME="1193211"></A><FONT FACE="courier, couriernew, monospaced size" SIZE="2"><zcodeline>bNoParam = new Boolean()<br>bZero = new Boolean(0)<br>bNull = new Boolean(null)<br>bEmptyString = new Boolean("")<br>bfalse = new Boolean(false)</zcodeline></FONT><P><A NAME="1193212"> </A><FONT FACE="Arial, Helvetica, sans-serif" SIZE="2"><zparagraph>The following examples create <FONT FACE="courier, couriernew, monospaced size">Boolean</FONT> objects with an initial value of true:</zparagraph></FONT><P><A NAME="1193213"></A><FONT FACE="courier, couriernew, monospaced size" SIZE="2"><zcodeline>btrue = new Boolean(true)<br>btrueString = new Boolean("true")<br>bfalseString = new Boolean("false")<br>bSuLin = new Boolean("Su Lin")</zcodeline></FONT><P><BR><P><A NAME="1195419"> </A><A NAME="constructor"> </A><FONT FACE="Arial, Helvetica, sans-serif" SIZE="4"><B><zrefhead2>constructor</zrefhead2></B></FONT><P><A NAME="1195420"> </A><FONT FACE="Arial, Helvetica, sans-serif" SIZE="2"><zparagraph>Specifies the function that creates an object's prototype. Note that the value of this property is a reference to the function itself, not a string containing the function's name.<BR><P><TABLE WIDTH="90%" BORDER="1" CELLPADDING="5" CELLSPACING="0"> <CAPTION></CAPTION><P><FONT FACE=""><B></B></FONT><BR><BR> <TR> <TD VALIGN=TOP><P><A NAME="1195423"> </A><FONT FACE="Arial, Helvetica, sans-serif" SIZE="2"><ztabletext><I>Property of</I></ztabletext></FONT> </TD> <TD VALIGN=TOP><P><A NAME="1195428"> </A><FONT FACE="Arial, Helvetica, sans-serif" SIZE="2"><ztabletext><A HREF="boolean.html#1193137" >Boolean</A></ztabletext></FONT> </TD> </TR> <TR> <TD VALIGN=TOP><P><A NAME="1195430"> </A><FONT FACE="Arial, Helvetica, sans-serif" SIZE="2"><ztabletext><I>Implemented in</I></ztabletext></FONT> </TD> <TD VALIGN=TOP><P><A NAME="1195432"> </A><FONT FACE="Arial, Helvetica, sans-serif" SIZE="2"><ztabletext>JavaScript 1.1, NES 2.0</ztabletext></FONT> </TD> </TR> <TR> <TD VALIGN=TOP><P><A NAME="1195434"> </A><FONT FACE="Arial, Helvetica, sans-serif" SIZE="2"><ztabletext><I>ECMA version</I></ztabletext></FONT> </TD> <TD VALIGN=TOP><P><A NAME="1195436"> </A><FONT FACE="Arial, Helvetica, sans-serif" SIZE="2"><ztabletext>ECMA-262</ztabletext></FONT> </TD> </TR></TABLE><P></zparagraph></FONT><P><BR><A NAME="1195437"> </A><A NAME="Description"> </A><FONT FACE="Arial, Helvetica, sans-serif" SIZE="2"><B><zrefheader>Description</zrefheader></B></FONT><BR><A NAME="1195441"> </A><FONT FACE="Arial, Helvetica, sans-serif" SIZE="2"><zparagraph>See <A HREF="object.html#1193229" >Object.constructor</A>.</zparagraph></FONT><P><BR><P><A NAME="1193217"> </A><A NAME="prototype"> </A><FONT FACE="Arial, Helvetica, sans-serif" SIZE="4"><B><zrefhead2>prototype</zrefhead2></B></FONT><P><A NAME="1193218"> </A><FONT FACE="Arial, Helvetica, sans-serif" SIZE="2"><zparagraph>Represents the prototype for this class. You can use the prototype to add properties or methods to all instances of a class. For information on prototypes, see <A HREF="function.html#1193426" >Function.prototype</A>.<BR><P><TABLE WIDTH="90%" BORDER="1" CELLPADDING="5" CELLSPACING="0"> <CAPTION></CAPTION><P><FONT FACE=""><B></B></FONT><BR><BR> <TR> <TD VALIGN=TOP><P><A NAME="1193224"> </A><FONT FACE="Arial, Helvetica, sans-serif" SIZE="2"><ztabletext><I>Property of</I></ztabletext></FONT> </TD> <TD VALIGN=TOP><P><A NAME="1193229"> </A><FONT FACE="Arial, Helvetica, sans-serif" SIZE="2"><ztabletext><A HREF="boolean.html#1193137" >Boolean</A></ztabletext></FONT> </TD> </TR> <TR> <TD VALIGN=TOP><P><A NAME="1193231"> </A><FONT FACE="Arial, Helvetica, sans-serif" SIZE="2"><ztabletext><I>Implemented in</I></ztabletext></FONT> </TD> <TD VALIGN=TOP><P><A NAME="1193233"> </A><FONT FACE="Arial, Helvetica, sans-serif" SIZE="2"><ztabletext>JavaScript 1.1, NES 2.0</ztabletext></FONT> </TD> </TR> <TR> <TD VALIGN=TOP><P><A NAME="1194007"> </A><FONT FACE="Arial, Helvetica, sans-serif" SIZE="2"><ztabletext><I>ECMA version</I></ztabletext></FONT> </TD> <TD VALIGN=TOP><P><A NAME="1194009"> </A><FONT FACE="Arial, Helvetica, sans-serif" SIZE="2"><ztabletext>ECMA-262</ztabletext></FONT> </TD> </TR></TABLE><P></zparagraph></FONT><P><BR><P><A NAME="1193426"> </A><A NAME="toSource"> </A><FONT FACE="Arial, Helvetica, sans-serif" SIZE="4"><B><zrefhead2>toSource</zrefhead2></B></FONT><P><A NAME="1193428"> </A><FONT FACE="Arial, Helvetica, sans-serif" SIZE="2"><zparagraph>Returns a string representing the source code of the object.<BR><P><TABLE WIDTH="90%" BORDER="1" CELLPADDING="5" CELLSPACING="0"> <CAPTION></CAPTION><P><FONT FACE=""><B></B></FONT><BR><BR> <TR> <TD VALIGN=TOP><P><A NAME="1193431"> </A><FONT FACE="Arial, Helvetica, sans-serif" SIZE="2"><ztabletext><I>Method of</I></ztabletext></FONT> </TD> <TD VALIGN=TOP><P><A NAME="1193436"> </A><FONT FACE="Arial, Helvetica, sans-serif" SIZE="2"><ztabletext><A HREF="boolean.html#1193137" >Boolean</A></ztabletext></FONT> </TD> </TR> <TR> <TD VALIGN=TOP><P><A NAME="1193438"> </A><FONT FACE="Arial, Helvetica, sans-serif" SIZE="2"><ztabletext><I>Implemented in</I></ztabletext></FONT> </TD> <TD VALIGN=TOP><P><A NAME="1193440"> </A><FONT FACE="Arial, Helvetica, sans-serif" SIZE="2"><ztabletext>JavaScript 1.3</ztabletext></FONT> </TD> </TR></TABLE><P></zparagraph></FONT><P><BR><A NAME="1193441"> </A><A NAME="Syntax"> </A><FONT FACE="Arial, Helvetica, sans-serif" SIZE="2"><B><zrefheader>Syntax</zrefheader></B></FONT><BR><A NAME="1193442"></A><FONT FACE="courier, couriernew, monospaced size" SIZE="2"><zcodeline>toSource()</zcodeline></FONT><P><BR><A NAME="1193443"> </A><A NAME="Parameters"> </A><FONT FACE="Arial, Helvetica, sans-serif" SIZE="2"><B><zrefheader>Parameters</zrefheader></B></FONT><BR><A NAME="1193444"> </A><FONT FACE="Arial, Helvetica, sans-serif" SIZE="2"><zparagraph>None</zparagraph></FONT><P><BR><A NAME="1193445"> </A><A NAME="Description"> </A><FONT FACE="Arial, Helvetica, sans-serif" SIZE="2"><B><zrefheader>Description</zrefheader></B></FONT><BR><A NAME="1196833"> </A><FONT FACE="Arial, Helvetica, sans-serif" SIZE="2"><zparagraph>The <FONT FACE="courier, couriernew, monospaced size">toSource</FONT> method returns the following values:</zparagraph></FONT>
?? 快捷鍵說明
復制代碼
Ctrl + C
搜索代碼
Ctrl + F
全屏模式
F11
切換主題
Ctrl + Shift + D
顯示快捷鍵
?
增大字號
Ctrl + =
減小字號
Ctrl + -