助力软件开发企业降本增效 PHP / java源码系统,只需一次付费,代码终身使用! 广告
| JScript  | [语言参考](#) | |-----|-----| # Microsoft JScript 特性 - ECMA <table border="1" cellspacing="0" cols="2" frame="box" rules="all"><tr valign="top"><th width="30%">种类</th><th width="70%">特性/关键字</th></tr><tr valign="top"><td width="30%">数组处理</td><td width="70%"><a href="jsobjarray.htm">Array</a>, <a href="jsmthconcatarray.htm">concat</a>,<br/><a href="jsmthjoin.htm">join</a>, <a href="jsprolengtharray.htm">length</a>, <a href="jsmthreverse.htm">reverse</a>, <a href="jsmthslicearray.htm">slice</a> <a href="jsmthsort.htm">sort</a></td></tr><tr valign="top"><td width="30%">赋值</td><td width="70%"><a href="jsoprassign.htm">赋值 (=)</a><br/><a href="jscompoundassignmentoperators.htm">复合赋值(OP=)</a></td></tr><tr valign="top"><td width="30%">Boolean </td><td width="70%"><a href="jsobjboolean.htm">Boolean</a></td></tr><tr valign="top"><td width="30%">注释</td><td width="70%"><a href="jsstmcomment.htm">/*...*/ 或 //</a><u> </u></td></tr><tr valign="top"><td width="30%">常数/文字</td><td width="70%"><a href="jspronanglobal.htm">NaN</a><br/><a href="glossary.htm#defnulljs">null</a><br/>true, false<br/><a href="jsproinfinity.htm">Infinity</a><br/><a href="glossary.htm#defundefined">undefined</a></td></tr><tr valign="top"><td width="30%">控制流</td><td width="70%"><a href="jsstmbreak.htm">Break</a><br/><a href="jsstmcontinue.htm">continue</a><br/><a href="jsstmdowhile.htm">do...while</a> <br/><a href="jsstmfor.htm">for</a><br/><a href="jsstmforin.htm">for...in</a><br/><a href="jsstmif.htm">if...else</a><br/><a href="jsstmlabeled.htm">Labeled</a><a href="jsstmreturn.htm"> <br/>return</a><br/><a href="jsstmswitch.htm">switch</a> <br/><a href="jsstmwhile.htm">while</a></td></tr><tr valign="top"><td width="30%">日期和时间</td><td width="70%"><a href="jsobjdate.htm">Date</a><br/><a href="jsmthgetdate.htm">getDate</a>, <a href="jsmthgetday.htm">getDay</a>, <a href="jsmthgetfullyear.htm">getFullYear</a>, <a href="jsmthgethours.htm">getHours</a>, <a href="jsmthgetmilliseconds.htm">getMilliseconds</a>, <a href="jsmthgetminutes.htm">getMinutes</a>, <a href="jsmthgetmonth.htm">getMonth</a>, <a href="jsmthgetseconds.htm">getSeconds</a>, <a href="jsmthgettime.htm">getTime</a>, <a href="jsmthgettimezone.htm">getTimezoneOffset</a>, <a href="jsmthgetyear.htm">getYear</a>, <br/><a href="jsmthgetutcdate.htm">getUTCDate</a>, <a href="jsmthgetutcday.htm">getUTCDay</a>, <a href="jsmthgetutcfullyear.htm">getUTCFullYear</a>, <a href="jsmthgetutchours.htm">getUTCHours</a>, <a href="jsmthgetutcmilliseconds.htm">getUTCMilliseconds</a>, <a href="jsmthgetutcminutes.htm">getUTCMinutes</a>, <a href="jsmthgetutcmonth.htm">getUTCMonth</a>, <a href="jsmthgetutcseconds.htm">getUTCSeconds</a>, <br/><a href="jsmthsetdate.htm">setDate</a>, <a href="jsmthsetfullyear.htm">setFullYear</a>, <a href="jsmthsethours.htm">setHours</a>, <a href="jsmthsetmilliseconds.htm">setMilliseconds</a>, <a href="jsmthsetminutes.htm">setMinutes</a>, <a href="jsmthsetmonth.htm">setMonth</a>, <a href="jsmthsetseconds.htm">setSeconds</a>, <a href="jsmthsettime.htm">setTime</a>, <a href="jsmthsetyear.htm">setYear</a>, <br/><a href="jsmthsetutcdate.htm">setUTCDate</a>, <a href="jsmthsetutcfullyear.htm">setUTCFullYear</a>, <a href="jsmthsetutchours.htm">setUTCHours</a>, <a href="jsmthsetutcmilliseconds.htm">setUTCMilliseconds</a>, <a href="jsmthsetutcminutes.htm">setUTCMinutes</a>, <a href="jsmthsetutcmonth.htm">setUTCMonth</a>, <a href="jsmthsetutcseconds.htm">setUTCSeconds</a>, <br/><a href="jsmthtogmtstring.htm">toGMTString</a>, <a href="jsmthtolocalestring.htm">toLocaleString</a>, <a href="jsmthtoutcstring.htm">toUTCString</a>, <a href="jsmthparse.htm">parse</a>, <a href="jsmthutc.htm">UTC</a></td></tr><tr valign="top"><td width="30%">声明</td><td width="70%"><a href="jsstmfunction.htm">Function</a><br/><a href="jsoprnew.htm">new</a><br/><a href="jsstmthis.htm">this</a><br/><a href="jsstmvar.htm">var</a><br/><a href="jsstmwith.htm">with</a></td></tr><tr valign="top"><td width="30%">错误处理</td><td width="70%"><a href="jsobjerror.htm">Error</a>, <a href="jsprodescription.htm">description</a>, <a href="jspronumber.htm">number</a>, <a href="jsstmthrow.htm">throw</a>, <a href="jsstmtrycatch.htm">try...catch</a></td></tr><tr valign="top"><td width="30%">函数创建</td><td width="70%"><a href="jsprocaller.htm">Caller</a>,<a href="jsobjfunction.htm">Function</a><br/><a href="jsproarguments.htm">arguments</a>, <a href="jsprolengthfunction.htm">length</a></td></tr><tr valign="top"><td width="30%">Global 方法</td><td width="70%"><a href="jsobjglobal.htm">Global</a><br/><a href="jsmthescape.htm">escape</a>, <a href="jsmthunescape.htm">unescape</a><br/><a href="jsmtheval.htm">eval</a><br/><a href="jsmthisfinite.htm">isFinite</a>, <a href="jsmthisnan.htm">isNaN</a><br/><a href="jsmthparseint.htm">parseInt</a>, <a href="jsmthparsefloat.htm">parseFloat</a></td></tr><tr valign="top"><td width="30%">数学</td><td width="70%"><a href="jsobjmath.htm">Math</a><br/><a href="jsmthabs.htm">abs</a>, <a href="jsmthacos.htm">acos</a>, <a href="jsmthasin.htm">asin</a>, <a href="jsmthatan.htm">atan</a>, <a href="jsmthatan2.htm">atan2</a>, <a href="jsmthceil.htm">ceil</a>, <a href="jsmthcos.htm">cos</a>, <a href="jsmthexp.htm">exp</a>, <a href="jsmthfloor.htm">floor</a>, <a href="jsmthlog.htm">log</a>, <a href="jsmthmax.htm">max</a>, <a href="jsmthmin.htm">min</a>, <a href="jsmthpow.htm">pow</a>, <a href="jsmthrandom.htm">random</a>, <a href="jsmthround.htm">round</a>, <a href="jsmthsin.htm">sin</a>, <a href="jsmthsqrt.htm">sqrt</a>, <a href="jsmthtan.htm">tan</a>, <br/><a href="jsproe.htm">E</a>, <a href="jsproln2.htm">LN2</a>, <a href="jsproln10.htm">LN10</a>, <a href="jsprolog2e.htm">LOG2E</a>, <a href="jsprolog10e.htm">LOG10E</a>, <a href="jspropi.htm">PI</a>, <a href="jsprosqrt1_2.htm">SQRT1_2</a>, <a href="jsprosqrt2.htm">SQRT2</a></td></tr><tr valign="top"><td width="30%">数字</td><td width="70%"><a href="jsobjnumber.htm">Number</a><br/><a href="jspromaxvalue.htm">MAX_VALUE</a>, <a href="jsprominvalue.htm">MIN_VALUE</a><br/><a href="jspronannumber.htm">NaN</a><br/><a href="jspronegativeinf.htm">NEGATIVE_INFINITY</a>, <a href="jspropositiveinf.htm">POSITIVE_INFINITY</a></td></tr><tr valign="top"><td width="30%">对象创建</td><td width="70%"><a href="jsobjobject.htm">Object</a><br/><a href="jsoprnew.htm">new</a><br/><a href="jsproconstructor.htm">constructor</a>, <a href="jsproprototype.htm">prototype</a>, <a href="jsmthtostring.htm">toString</a>, <a href="jsmthvalueof.htm">valueOf</a></td></tr><tr valign="top"><td width="30%">运算符</td><td width="70%"><a href="jsopradd.htm">加 (+)</a>, <a href="jsoprsubtract.htm">减 (-)</a><br/><a href="jsoprmod.htm">算术取模 (%)</a><br/><a href="jsoprmultiply.htm">乘 (*)</a>, <a href="jsoprdivide.htm">除 (/)</a><br/><a href="jsoprsubtract.htm">负 (-)</a><br/><a href="jsgrpcomparison.htm">相等 (==)</a>, <a href="jsgrpcomparison.htm">不相等 (!=)</a><br/><a href="jsgrpcomparison.htm">小于 (&lt;)</a>, <a href="jsgrpcomparison.htm">小于等于 (&lt;=)</a><br/><a href="jsgrpcomparison.htm">大于 (&gt;)</a><br/><a href="jsgrpcomparison.htm">大于等于 (&gt;=)</a><br/><a href="jsoprand.htm">逻辑与 (&amp;&amp;)</a>, <a href="jsopror.htm">或 (||)</a>, <a href="jsoprnot.htm">非 (!)</a><br/><a href="jsoprbitwiseand.htm">位与 (&amp;)</a>, <a href="jsoprbitwiseor.htm">或 (|)</a>, <a href="jsoprbitwisenot.htm">非 (~)</a>, <a href="jsoprxor.htm">异或 (^)</a><br/><a href="jsoprlshift.htm">位左移 (&lt;&lt;)</a>, <a href="jsoprrshift.htm">右移 (&gt;&gt;)</a><br/><a href="jsoprurshift.htm">无符号右移 (&gt;&gt;&gt;)</a><br/><a href="jsoprconditional.htm">条件 (?:)</a><br/><a href="jsoprcomma.htm">逗号 (,)</a><br/><a href="jsoprdelete.htm">delete</a>, <a href="jsoprtypeof.htm">typeof</a>, <a href="jsoprvoid.htm">void</a><br/><a href="jsoprincdec.htm">递减 (--)</a>, <a href="jsoprincdec.htm">递增 (++)</a>, <a href="jsgrpcomparison.htm">恒等 (===)</a>, <a href="jsgrpcomparison.htm">不恒等 (!==)</a></td></tr><tr valign="top"><td width="30%">对象</td><td width="70%"><a href="jsobjarray.htm">Array</a><br/><a href="jsobjboolean.htm">Boolean</a><br/><a href="jsobjdate.htm">Date</a><br/><a href="jsobjfunction.htm">Function</a><br/><a href="jsobjglobal.htm">Global</a><br/><a href="jsobjmath.htm">Math</a><br/><a href="jsobjnumber.htm">Number</a><br/><a href="jsobjobject.htm">Object</a><br/><a href="jsobjregexp.htm">RegExp</a> <br/><a href="jsobjstring.htm">String</a></td></tr><tr valign="top"><td width="30%">正则表达式和模式匹配</td><td width="70%"><a href="jsobjregexp.htm">RegExp</a> <br/><a href="jsproindex.htm">index</a>, <a href="jsproinput.htm">input</a>, <a href="jsprolastindex.htm">lastIndex</a>, <a href="jspromatches.htm">$1...$9</a>, <a href="jsprosource.htm">source</a>, <a href="jsmthcompile.htm">compile</a>, <a href="jsmthexec.htm">exec</a>, <a href="jsmthtest.htm">test</a> <br/><a href="jsgrpregexpsyntax.htm">Regular Expression Syntax</a> </td></tr><tr valign="top"><td width="30%">字符串</td><td width="70%"><a href="jsobjstring.htm">String</a><br/><a href="jsmthcharat.htm">charAt</a>, <a href="jsmthcharcodeat.htm">charCodeAt</a>, <a href="jsmthfromcharcode.htm">fromCharCode</a><br/><a href="jsmthindexof.htm">indexOf</a>, <a href="jsmthlastindexof.htm">lastIndexOf</a><br/><a href="jsmthsplit.htm">split</a><br/><a href="jsmthtolowercase.htm">toLowerCase</a>, <a href="jsmthtouppercase.htm">toUpperCase</a><br/><a href="jsprolengthstring.htm">length</a><br/><a href="jsmthconcatstring.htm">concat</a>, <a href="jsmthslicestring.htm">slice</a> <br/><a href="jsmthmatch.htm">match</a>, <a href="jsmthreplace.htm">replace</a>, <a href="jsmthsearch.htm">search</a> <br/><a href="jsmthanchor.htm">anchor</a>, <a href="jsmthbig.htm">big</a>, <a href="jsmthblink.htm">blink</a>, <a href="jsmthbold.htm">bold</a>, <a href="jsmthfixed.htm">fixed</a>, <a href="jsmthfontcolor.htm">fontcolor</a>, <a href="jsmthfontsize.htm">fontsize</a>, <a href="jsmthitalics.htm">italics</a>, <a href="jsmthlink.htm">link</a>, <a href="jsmthsmall.htm">small</a>, <a href="jsmthstrike.htm">strike</a>, <a href="jsmthsub.htm">sub</a>, <a href="jsmthsup.htm">sup</a></td></tr></table> [© 2000 Microsoft Corporation 版权所有。保留所有权利。使用规定。](#)