📄 deprecat.html
字号:
<HTML><HEAD> <META NAME="keywords" CONTENT="electronic commerce, ecommerce, ebusiness, e-business, e-commerce, enterprise software, net economy, Netscape, Sun Microsystems, Sun-Netscape Alliance, iPlanet, internet software"> <META NAME="description" CONTENT="The Sun-Netscape Alliance, a strategic alliance formed by America Online and Sun Microsystems, Inc., is delivering iPlanet e-commerce software and enterprise solutions that enable companies to compete successfully in the Net Economy"> <META HTTP-EQUIV="Content-Type" content="text/html; charset=ISO-8859-1"> <META NAME="TEMPLATEBASE" CONTENT="Authored in FrameMaker. Converted to HTML in WebWorks Publisher 2000. manual wdt 1.5"> <META NAME="LASTUPDATED" CONTENT="09/28/00 13:16:30"> <TITLE> Core JavaScript Reference 1.5: B Deprecated Features</TITLE></HEAD><BODY TEXT="#000000" LINK="#666699" VLINK="#666699" ALINK="#333366" BGCOLOR="#FFFFFF"><MAINCONTENT><NAVIGATIONCONTENT> <TABLE WIDTH="100%" BORDER="0" CELLSPACING="4"> <TR> <TD VALIGN="TOP"> <b><a href="keywords.html"><FONT FACE="Arial, Helvetica, sans-serif" SIZE="2" COLOR="#993300">Previous</a></FONT> </b><a href="contents.html"><b><FONT FACE="Arial, Helvetica, sans-serif" SIZE="2" COLOR="#993300">Contents</a></FONT></b> <a href="ix.html"><b><FONT FACE="Arial, Helvetica, sans-serif" SIZE="2" COLOR="#993300">Index</a></FONT></b> <a href="ix.html"><b><FONT FACE="Arial, Helvetica, sans-serif" SIZE="2" COLOR="#993300">Next</a></FONT></b> </TD> </TR> <TR> <TD VALIGN="TOP" ALIGN="RIGHT" BGCOLOR="#CCCCCC"> <FONT FACE="Arial, Helvetica, sans-serif" COLOR="#000000" SIZE="2"><B> Core JavaScript Reference 1.5</B></FONT> </TD> </TR> <TR> </TABLE> <BR></NAVIGATIONCONTENT><BOOKCONTENT> <blockquote><BR><BR> <A NAME="1004013"> </A><A NAME=""> </A><FONT FACE="Arial, Helvetica, sans-serif" SIZE="4" COLOR="#666666"><B><zchapnumbera>Appendix B </zchapnumbera> </B></FONT><A NAME="1004016"> </A><A NAME="Deprecated Features"> </A><FONT FACE="Arial, Helvetica, sans-serif" SIZE="4" COLOR="#000000"><B><zchaptitlea>Appendix B Deprecated Features</zchaptitlea></B></FONT><BR><BR><BR><A NAME="1004018"> </A><FONT FACE="Arial, Helvetica, sans-serif" SIZE="2"><zparagraph>This appendix lists the features that are deprecated as of JavaScript 15.</zparagraph></FONT><P><ul><A NAME="1005266"> </A><FONT FACE="Arial, Helvetica, sans-serif" SIZE="2"><B> <li></B><zsmartlist1>RegExp Properties </zsmartlist1></FONT><P><P><A NAME="1005265"> </A><FONT FACE="Arial, Helvetica, sans-serif" SIZE="2">The following properties are deprecated.<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="1005590"> </A><P ALIGN="LEFT"><FONT FACE="Arial, Helvetica, sans-serif" SIZE="2"><B><ztablehead>Property</ztablehead></B></FONT></TH> <TH VALIGN=TOP ALIGN=LEFT><A NAME="1005592"> </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="1005597"></A><FONT FACE="courier, couriernew, monospaced size" SIZE="2"><zcodeline><FONT FACE="courier, couriernew, monospaced size">$1, ..., $9</FONT></zcodeline></FONT><P> </TD> <TD VALIGN=TOP><P><A NAME="1005599"> </A><FONT FACE="Arial, Helvetica, sans-serif" SIZE="2"><ztabletext>Parenthesized substring matches, if any.</ztabletext></FONT> </TD> </TR> <TR> <TD VALIGN=TOP><A NAME="1005604"></A><FONT FACE="courier, couriernew, monospaced size" SIZE="2"><zcodeline><FONT FACE="courier, couriernew, monospaced size">$_</FONT></zcodeline></FONT><P> </TD> <TD VALIGN=TOP><P><A NAME="1005609"> </A><FONT FACE="Arial, Helvetica, sans-serif" SIZE="2"><ztabletext>See <FONT FACE="courier, couriernew, monospaced size">input</FONT>.</ztabletext></FONT> </TD> </TR> <TR> <TD VALIGN=TOP><A NAME="1005614"></A><FONT FACE="courier, couriernew, monospaced size" SIZE="2"><zcodeline><FONT FACE="courier, couriernew, monospaced size">$*</FONT></zcodeline></FONT><P> </TD> <TD VALIGN=TOP><P><A NAME="1005619"> </A><FONT FACE="Arial, Helvetica, sans-serif" SIZE="2"><ztabletext>See <FONT FACE="courier, couriernew, monospaced size">multiline</FONT>.</ztabletext></FONT> </TD> </TR> <TR> <TD VALIGN=TOP><A NAME="1005624"></A><FONT FACE="courier, couriernew, monospaced size" SIZE="2"><zcodeline><FONT FACE="courier, couriernew, monospaced size">$&</FONT></zcodeline></FONT><P> </TD> <TD VALIGN=TOP><P><A NAME="1005629"> </A><FONT FACE="Arial, Helvetica, sans-serif" SIZE="2"><ztabletext>See <FONT FACE="courier, couriernew, monospaced size">lastMatch</FONT>.</ztabletext></FONT> </TD> </TR> <TR> <TD VALIGN=TOP><A NAME="1005634"></A><FONT FACE="courier, couriernew, monospaced size" SIZE="2"><zcodeline><FONT FACE="courier, couriernew, monospaced size">$+</FONT></zcodeline></FONT><P> </TD> <TD VALIGN=TOP><P><A NAME="1005639"> </A><FONT FACE="Arial, Helvetica, sans-serif" SIZE="2"><ztabletext>See <FONT FACE="courier, couriernew, monospaced size">lastParen</FONT>.</ztabletext></FONT> </TD> </TR> <TR> <TD VALIGN=TOP><A NAME="1005644"></A><FONT FACE="courier, couriernew, monospaced size" SIZE="2"><zcodeline><FONT FACE="courier, couriernew, monospaced size">$`</FONT></zcodeline></FONT><P> </TD> <TD VALIGN=TOP><P><A NAME="1005649"> </A><FONT FACE="Arial, Helvetica, sans-serif" SIZE="2"><ztabletext>See <FONT FACE="courier, couriernew, monospaced size">leftContext</FONT>.</ztabletext></FONT> </TD> </TR> <TR> <TD VALIGN=TOP><A NAME="1005654"></A><FONT FACE="courier, couriernew, monospaced size" SIZE="2"><zcodeline><FONT FACE="courier, couriernew, monospaced size">$'</FONT></zcodeline></FONT><P> </TD> <TD VALIGN=TOP><P><A NAME="1005659"> </A><FONT FACE="Arial, Helvetica, sans-serif" SIZE="2"><ztabletext>See <FONT FACE="courier, couriernew, monospaced size">rightContext</FONT>.</ztabletext></FONT> </TD> </TR> <TR> <TD VALIGN=TOP><A NAME="1005685"></A><FONT FACE="courier, couriernew, monospaced size" SIZE="2"><zcodeline><FONT FACE="courier, couriernew, monospaced size">input</FONT></zcodeline></FONT><P> </TD> <TD VALIGN=TOP><P><A NAME="1005687"> </A><FONT FACE="Arial, Helvetica, sans-serif" SIZE="2"><ztabletext>The string against which a regular expression is matched.</ztabletext></FONT> </TD> </TR> <TR> <TD VALIGN=TOP><A NAME="1005699"></A><FONT FACE="courier, couriernew, monospaced size" SIZE="2"><zcodeline><FONT FACE="courier, couriernew, monospaced size">lastMatch</FONT></zcodeline></FONT><P> </TD> <TD VALIGN=TOP><P><A NAME="1005701"> </A><FONT FACE="Arial, Helvetica, sans-serif" SIZE="2"><ztabletext>The last matched characters.</ztabletext></FONT> </TD> </TR> <TR> <TD VALIGN=TOP><A NAME="1005706"></A><FONT FACE="courier, couriernew, monospaced size" SIZE="2"><zcodeline><FONT FACE="courier, couriernew, monospaced size">lastParen</FONT></zcodeline></FONT><P> </TD> <TD VALIGN=TOP><P><A NAME="1005708"> </A><FONT FACE="Arial, Helvetica, sans-serif" SIZE="2"><ztabletext>The last parenthesized substring match, if any.</ztabletext></FONT> </TD> </TR> <TR> <TD VALIGN=TOP><A NAME="1005713"></A><FONT FACE="courier, couriernew, monospaced size" SIZE="2"><zcodeline><FONT FACE="courier, couriernew, monospaced size">leftContext</FONT></zcodeline></FONT><P> </TD> <TD VALIGN=TOP><P><A NAME="1005715"> </A><FONT FACE="Arial, Helvetica, sans-serif" SIZE="2"><ztabletext>The substring preceding the most recent match.</ztabletext></FONT> </TD> </TR> <TR> <TD VALIGN=TOP><A NAME="1005764"></A><FONT FACE="courier, couriernew, monospaced size" SIZE="2"><zcodeline>rightContext</zcodeline></FONT><P> </TD> <TD VALIGN=TOP><P><A NAME="1005766"> </A><FONT FACE="Arial, Helvetica, sans-serif" SIZE="2"><ztabletext>The substring following the most recent match.</ztabletext></FONT> </TD> </TR></TABLE><P></FONT><P><P><A NAME="1005445"> </A><FONT FACE="Arial, Helvetica, sans-serif" SIZE="2">The following are now properties of RegExp instances, no longer of the RegExp object.<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="1005938"> </A><P ALIGN="LEFT"><FONT FACE="Arial, Helvetica, sans-serif" SIZE="2"><B><ztablehead>Property</ztablehead></B></FONT></TH> <TH VALIGN=TOP ALIGN=LEFT><A NAME="1005940"> </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="1005945"></A><FONT FACE="courier, couriernew, monospaced size" SIZE="2"><zcodeline><FONT FACE="courier, couriernew, monospaced size">global</FONT></zcodeline></FONT><P> </TD> <TD VALIGN=TOP><P><A NAME="1005947"> </A><FONT FACE="Arial, Helvetica, sans-serif" SIZE="2"><ztabletext>Whether or not to test the regular expression against all possible matches in a string, or only against the first.</ztabletext></FONT> </TD> </TR> <TR> <TD VALIGN=TOP><A NAME="1005952"></A><FONT FACE="courier, couriernew, monospaced size" SIZE="2"><zcodeline><FONT FACE="courier, couriernew, monospaced size">ignoreCase</FONT></zcodeline></FONT><P> </TD> <TD VALIGN=TOP><P><A NAME="1005954"> </A><FONT FACE="Arial, Helvetica, sans-serif" SIZE="2"><ztabletext>Whether or not to ignore case while attempting a match in a string.</ztabletext></FONT> </TD> </TR> <TR> <TD VALIGN=TOP><A NAME="1005966"></A><FONT FACE="courier, couriernew, monospaced size" SIZE="2"><zcodeline><FONT FACE="courier, couriernew, monospaced size">lastIndex</FONT></zcodeline></FONT><P> </TD> <TD VALIGN=TOP><P><A NAME="1005968"> </A><FONT FACE="Arial, Helvetica, sans-serif" SIZE="2"><ztabletext>The index at which to start the next match. </ztabletext></FONT> </TD> </TR> <TR> <TD VALIGN=TOP><A NAME="1005994"></A><FONT FACE="courier, couriernew, monospaced size" SIZE="2"><zcodeline><FONT FACE="courier, couriernew, monospaced size">multiline</FONT></zcodeline></FONT><P> </TD> <TD VALIGN=TOP><P><A NAME="1005996"> </A><FONT FACE="Arial, Helvetica, sans-serif" SIZE="2"><ztabletext>Whether or not to search in strings across multiple lines.</ztabletext></FONT> </TD> </TR> <TR> <TD VALIGN=TOP><P><A NAME="1006015"> </A><FONT FACE="Arial, Helvetica, sans-serif" SIZE="2"><ztabletext><FONT FACE="courier, couriernew, monospaced size">source</FONT></ztabletext></FONT> </TD> <TD VALIGN=TOP><P><A NAME="1006017"> </A><FONT FACE="Arial, Helvetica, sans-serif" SIZE="2"><ztabletext>The text of the pattern.</ztabletext></FONT> </TD> </TR></TABLE><P></FONT><P><A NAME="1006036"> </A><FONT FACE="Arial, Helvetica, sans-serif" SIZE="2"><B> <li></B><zsmartlist1>RegExp Methods </zsmartlist1></FONT><P> <dl> <DT> <A NAME="1005446"> </A><FONT FACE="Arial, Helvetica, sans-serif" SIZE="2"><zparaindent1>The <FONT FACE="courier, couriernew, monospaced size">compile</FONT> method is deprecated.</zparaindent1></FONT><P> <DT> <A NAME="1006080"> </A><FONT FACE="Arial, Helvetica, sans-serif" SIZE="2"><zparaindent1>The <FONT FACE="courier, couriernew, monospaced size">valueOf</FONT> method is no longer specialized for RegExp. Use <FONT FACE="courier, couriernew, monospaced size">Object.valueOf</FONT>.</zparaindent1></FONT><P> </dl><A NAME="1006052"> </A><FONT FACE="Arial, Helvetica, sans-serif" SIZE="2"><B> <li></B><zsmartlist1>Escape sequences</zsmartlist1></FONT><P> <dl> <DT> <A NAME="1006018"> </A><FONT FACE="Arial, Helvetica, sans-serif" SIZE="2"><zparaindent1>Octal escape sequences (\ followed by one, two, or three octal digits) are deprecated in string and regular expression literals.</zparaindent1></FONT><P> <DT> <A NAME="1006020"> </A><FONT FACE="Arial, Helvetica, sans-serif" SIZE="2"><zparaindent1>The escape and unescape functions are deprecated. Use encodeURI, encodeURIComponent, decodeURI or decodeURIComponent to encode and decode escape sequences for special characters.</zparaindent1></FONT><P> </dl></ul> </BLOCKQUOTE></BOOKCONTENT><FOOTERCONTENT> <BLOCKQUOTE> <BR> <b><a href="keywords.html"><FONT FACE="Arial, Helvetica, sans-serif" SIZE="2" COLOR="#993300">Previous</a></FONT> </b><a href="contents.html"><b><FONT FACE="Arial, Helvetica, sans-serif" SIZE="2" COLOR="#993300">Contents</a></FONT></b> <a href="ix.html"><b><FONT FACE="Arial, Helvetica, sans-serif" SIZE="2" COLOR="#993300">Index</a></FONT></b> <a href="ix.html"><b><FONT FACE="Arial, Helvetica, sans-serif" SIZE="2" COLOR="#993300">Next</a></FONT></b> <HR NOSHADE SIZE="1"> <font face="Arial, Helvetica, sans-serif" SIZE="1">Copyright © 2000 <a href="http://www.netscape.com">Netscape Communications Corp.</a> All rights reserved.</FONT> </BLOCKQUOTE> <FONT FACE="Arial, Helvetica, sans-serif" SIZE="1"> <P ALIGN="RIGHT">Last Updated <B>September 28, 2000</B> </FONT> <BR></FOOTERCONTENT></MAINCONTENT></BODY></HTML>
⌨️ 快捷键说明
复制代码
Ctrl + C
搜索代码
Ctrl + F
全屏模式
F11
切换主题
Ctrl + Shift + D
显示快捷键
?
增大字号
Ctrl + =
减小字号
Ctrl + -