﻿<?xml version="1.0" encoding="utf-8" standalone="yes"?><rss version="2.0" xmlns:dc="http://purl.org/dc/elements/1.1/" xmlns:trackback="http://madskills.com/public/xml/rss/module/trackback/" xmlns:wfw="http://wellformedweb.org/CommentAPI/" xmlns:slash="http://purl.org/rss/1.0/modules/slash/"><channel><title>BlogJava-exist-随笔分类-javascript</title><link>http://www.blogjava.net/exist/category/16178.html</link><description /><language>zh-cn</language><lastBuildDate>Wed, 28 Feb 2007 03:25:37 GMT</lastBuildDate><pubDate>Wed, 28 Feb 2007 03:25:37 GMT</pubDate><ttl>60</ttl><item><title>js基础</title><link>http://www.blogjava.net/exist/archive/2006/10/11/74663.html</link><dc:creator>yucc</dc:creator><author>yucc</author><pubDate>Wed, 11 Oct 2006 13:45:00 GMT</pubDate><guid>http://www.blogjava.net/exist/archive/2006/10/11/74663.html</guid><wfw:comment>http://www.blogjava.net/exist/comments/74663.html</wfw:comment><comments>http://www.blogjava.net/exist/archive/2006/10/11/74663.html#Feedback</comments><slash:comments>0</slash:comments><wfw:commentRss>http://www.blogjava.net/exist/comments/commentRss/74663.html</wfw:commentRss><trackback:ping>http://www.blogjava.net/exist/services/trackbacks/74663.html</trackback:ping><description><![CDATA[
		<h1>
				<a name="datatype">
				</a>
				<font style="BACKGROUND-COLOR: #ffffff" face="Georgia" color="#0033ff" size="1">数据类型</font>
		</h1>
		<p>
				<font face="Georgia" size="1">Jscript 有三种主要数据类型、两种复合数据类型和两种特殊数据类型。</font>
		</p>
		<p>
				<font face="Georgia" size="1">主要（基本）数据类型是： </font>
		</p>
		<ul type="disc">
				<li>
						<font face="Georgia" size="1">字符串 </font>
				</li>
				<li>
						<font face="Georgia" size="1">数值 </font>
				</li>
				<li>
						<font face="Georgia" size="1">布尔 </font>
				</li>
		</ul>
		<p>
				<font face="Georgia" size="1">复合（引用）数据类型是： </font>
		</p>
		<ul type="disc">
				<li>
						<font face="Georgia" size="1">对象 </font>
				</li>
				<li>
						<font face="Georgia" size="1">数组 </font>
				</li>
		</ul>
		<p>
				<font face="Georgia" size="1">特殊数据类型是： </font>
		</p>
		<ul type="disc">
				<li>
						<font face="Georgia" size="1">Null </font>
				</li>
				<li>
						<font face="Georgia" size="1">Undefined </font>
				</li>
		</ul>
		<h2>
				<font face="Georgia" size="1">字符串数据类型</font>
		</h2>
		<p>
				<font face="Georgia" size="1">一个字符串值是排在一起的一串零或零以上的 Unicode 字符（字母、数字和标点符号）。字符串数据类型用来表示 JScript 中的文本。脚本中可以包含字符串文字，这些字符串文字放在一对匹配的的单引号或双引号中。字符串中可以包含双引号，该双引号两边需加单引号，也可以包含单引号，该单引号两边需加双引号。下面是字符串的示例：</font>
		</p>
		<pre>
				<code>
						<font face="Georgia" size="1">"Happy am I; from care I’m free!"
'"Avast, ye lubbers!" roared the technician.' 
"42"
'c'</font>
				</code>
		</pre>
		<p>
				<font face="Georgia" size="1">请注意，JScript 中没有表示单个字符的类型（如 C++ 的 <b>char</b>）。要表示 Jscript 中的单个字符，应创建一个只包含一个字符的字符串。包含零个字符（""）的字符串是空（零长度）字符串。</font>
		</p>
		<h2>
				<font face="Georgia" size="1">数值数据类型</font>
		</h2>
		<p>
				<font face="Georgia" size="1">在 Jscript 中整数和浮点值没有差别；JScript 数值可以是其中任意一种（JScript 内部将所有的数值表示为<font style="BACKGROUND-COLOR: #ccffff">浮点值</font>）。</font>
		</p>
		<h3>
				<font face="Georgia" size="1">整型值</font>
		</h3>
		<p>
				<font face="Georgia" size="1">整型值可以是正整数，负整数和 0。可以用 10 进制，8 进制和 16 进制来表示。在 Jscript 中大多数字是用十进制表示的。加前缀“0”表示 8 进制的整型值，只能包含 0 到 7 的数字。前缀为“0”同时包含数字“8”或“9”的数被解释为十进制数。 </font>
		</p>
		<p>
				<font face="Georgia" size="1">加前缀“0x”（零和x|X）表示 16 进制整型值。可以包含数字 0 到 9，以及字母 A 到 F（大写或小写）。使用字母 A 到 F 表示十进制 10 到 15 的单个数字。就是说 0xF 与 15 相等，同时 0x10 等于 16。</font>
		</p>
		<p>
				<font face="Georgia" size="1">八进制和十六进制数可以为负，但不能有小数位，同时不能以科学计数法（指数）表示。</font>
		</p>
		<h3>
				<font face="Georgia" size="1">浮点值</font>
		</h3>
		<p>
				<font face="Georgia" size="1">浮点值为带小数部分的数。也可以用科学计数法来表示。这就是说，大写或小写“e”用来表示 10 的次方。Jscript用数值表示的八字节 IEEE754 浮点标准。这意味着数字最大可以到±1.7976931348623157x10<sup>308</sup>，最小到±5x10<sup>-324</sup>。以“0”开始且包含小数点的数字被解释为小数浮点数。</font>
		</p>
		<p>
				<font face="Georgia" size="1">注意以“0x”或“00”开始并包含小数点的数将发生错误。以下是 Jscript 中数字的例子。</font>
		</p>
		<p>
		</p>
		<table cellspacing="0" cols="3" rules="all" border="1" frame="box">
				<tbody>
						<tr valign="top">
								<th width="29%">
										<font face="Georgia" size="1">数字</font>
								</th>
								<th width="48%">
										<font face="Georgia" size="1">描述</font>
								</th>
								<th width="23%">
										<font face="Georgia" size="1">等价十进制数</font>
								</th>
						</tr>
						<tr valign="top">
								<td width="29%">
										<font face="Georgia" size="1">.0001, 0.0001, 1e-4, 1.0e-4</font>
								</td>
								<td width="48%">
										<font face="Georgia" size="1">四个相等的浮点数。</font>
								</td>
								<td width="23%">
										<font face="Georgia" size="1">0.0001</font>
								</td>
						</tr>
						<tr valign="top">
								<td width="29%">
										<font face="Georgia" size="1">3.45e2</font>
								</td>
								<td width="48%">
										<font face="Georgia" size="1">浮点数。</font>
								</td>
								<td width="23%">
										<font face="Georgia" size="1">345</font>
								</td>
						</tr>
						<tr valign="top">
								<td width="29%">
										<font face="Georgia" size="1">42</font>
								</td>
								<td width="48%">
										<font face="Georgia" size="1">整数。</font>
								</td>
								<td width="23%">
										<font face="Georgia" size="1">42</font>
								</td>
						</tr>
						<tr valign="top">
								<td width="29%">
										<font face="Georgia" size="1">0378</font>
								</td>
								<td width="48%">
										<font face="Georgia" size="1">整数。虽然看起来是八进制数（以0开头），但是8不是有效的八进制数字，所以为十进制数。</font>
								</td>
								<td width="23%">
										<font face="Georgia" size="1">378</font>
								</td>
						</tr>
						<tr valign="top">
								<td width="29%">
										<font face="Georgia" size="1">0377</font>
								</td>
								<td width="48%">
										<font face="Georgia" size="1">八进制整数。注意它虽然看起来比上面的数只小1，但实际数值有很大不同。</font>
								</td>
								<td width="23%">
										<font face="Georgia" size="1">255</font>
								</td>
						</tr>
						<tr valign="top">
								<td width="29%">
										<font face="Georgia" size="1">0.0001</font>
								</td>
								<td width="48%">
										<font face="Georgia" size="1">浮点数。虽然以零开头，但由于带有小数点所以不是八进制数。</font>
								</td>
								<td width="23%">
										<font face="Georgia" size="1">0.0001</font>
								</td>
						</tr>
						<tr valign="top">
								<td width="29%">
										<font face="Georgia" size="1">00.0001</font>
								</td>
								<td width="48%">
										<font face="Georgia" size="1">错误。两个零开头表示为八进制，但八进制数不能带有小数部分。</font>
								</td>
								<td width="23%">
										<font face="Georgia" size="1">N/A （编译错误）</font>
								</td>
						</tr>
						<tr valign="top">
								<td width="29%">
										<font face="Georgia" size="1">0Xff</font>
								</td>
								<td width="48%">
										<font face="Georgia" size="1">十六进制整数。</font>
								</td>
								<td width="23%">
										<font face="Georgia" size="1">255</font>
								</td>
						</tr>
						<tr valign="top">
								<td width="29%">
										<font face="Georgia" size="1">0x37CF</font>
								</td>
								<td width="48%">
										<font face="Georgia" size="1">十六进制整数。</font>
								</td>
								<td width="23%">
										<font face="Georgia" size="1">14287</font>
								</td>
						</tr>
						<tr valign="top">
								<td width="29%">
										<font face="Georgia" size="1">0x3e7</font>
								</td>
								<td width="48%">
										<font face="Georgia" size="1">十六进制整数。注意‘e’并不被认为指数。</font>
								</td>
								<td width="23%">
										<font face="Georgia" size="1">999</font>
								</td>
						</tr>
						<tr valign="top">
								<td width="29%">
										<font face="Georgia" size="1">0x3.45e2</font>
								</td>
								<td width="48%">
										<font face="Georgia" size="1">错误。十六进制数不能有小数部分。</font>
								</td>
								<td width="23%">
										<font face="Georgia" size="1">N/A （编译错误）</font>
								</td>
						</tr>
				</tbody>
		</table>
		<br />
		<p>
				<font face="Georgia" size="1">另外，JScript包含特殊值数字。它们是： </font>
		</p>
		<ul type="disc">
				<li>
						<font face="Georgia" size="1">NaN （不是数）。当对不适当的数据进行数学运算时使用，例如字符串或未定义值。 </font>
				</li>
				<li>
						<font face="Georgia" size="1">正无穷大。在JScript中如果一个正数太大的话使用它来表示。 </font>
				</li>
				<li>
						<font face="Georgia" size="1">负无穷大。在JScript中如果一个负数太大的话使用它来表示。 </font>
				</li>
				<li>
						<font face="Georgia" size="1">正0和负0。Jscript区分正0和负0。 </font>
				</li>
		</ul>
		<h2>
				<font face="Georgia" size="1">Boolean数据类型</font>
		</h2>
		<p>
				<font face="Georgia" size="1">尽管字符串和数字类型可以有无数不同的值，boolean 数据类型却只有两个值。它们是文字 <b>true </b>和 <b>false</b>。Boolean值是一个真值，它表示一个状态的有效性（说明该状态为真或假）。</font>
		</p>
		<p>
				<font face="Georgia" size="1">脚本中的比较通常得到一个 Boolean 结果。考虑下一行 Jscript 代码。</font>
		</p>
		<pre>
				<code>
						<font face="Georgia" size="1">y = (x == 2000);</font>
				</code>
		</pre>
		<p>
				<font face="Georgia" size="1">这里要比较变量 x 的值是否与数字 2000 相等。如果相等，比较的结果为 Boolean 值 <b>true</b>，并将其赋给变量 y。如果x与2000不等，则比较的结果为boolean值<b>false</b>。</font>
		</p>
		<p>
				<font face="Georgia" size="1">Boolean值在结构控制中尤其有用。可以将直接创建 boolean 值的比较与用使用该 boolean 值的语句相组合。考虑下面的JScript代码范例。</font>
		</p>
		<pre>
				<code>
						<font face="Georgia" size="1">if (x == 2000)
    z = z + 1;
else
    x = x + 1;</font>
				</code>
		</pre>
		<p>
				<font face="Georgia" size="1">当 boolean 值为 <b>true</b> 时，Jscript 中的 <b>if/else</b> 语句执行一个操作（这样，z = z + 1），而当 boolean 值为 <b>false</b> 时执行另一个操作（x = x + 1）。</font>
		</p>
		<p>
				<font face="Georgia" size="1">可以使用任意表达式作比较表达式。任何值为0、null、未定义或空字符串的表达式被解释为 <b>false</b>。其他任意值的表达式解释为 <b>true</b>。例如，可以使用如下表达式：</font>
		</p>
		<pre>
				<font size="1">
						<font face="Georgia">
								<code>if (x = y + z) // </code>这可能不是想要的结果<code> – </code>如下！</font>
				</font>
		</pre>
		<p>
				<font face="Georgia" size="1">注意上面的代码并不检查 x 是否与 y+z 相等，因为仅使用了一个等号（赋值）。相反的，上面的代码将 y+z 赋给变量 x，然后检查整个表达式的值是否为零。要检查 x 是否与 y+z 相等，使用如下代码。</font>
		</p>
		<pre>
				<font size="1">
						<font face="Georgia">
								<code>if (x == y + z) // </code>这与上面的代码不同！</font>
				</font>
		</pre>
		<h2>
				<font face="Georgia" size="1">Null 数据类型</font>
		</h2>
		<p>
				<font face="Georgia" size="1">在 Jscript 中数据类型 <b>null</b> 只有一个值：null。关键字 null 不能用作函数或变量的名称。</font>
		</p>
		<p>
				<font face="Georgia" size="1">包含 null 的变量包含“无值”或“无对象”。换句话说，该变量没有保存有效的数、字符串、boolean、数组或对象。可以通过给一个变量赋 null 值来清除变量的内容。</font>
		</p>
		<p>
				<font face="Georgia" size="1">请注意，在 Jscript 中，null 与 0 不相等（与在 C 和 C++ 中不同）。同时应该指出的是，Jscript中 <b>typeof</b> 运算符将报告 null 值为 <b>Object</b> 类型，而非类型 null。这点潜在的混淆是为了向下兼容。</font>
		</p>
		<h2>
				<font face="Georgia" size="1">Undefined 数据类型</font>
		</h2>
		<p>
				<font face="Georgia" size="1">如下情况使返回 undefined 值： </font>
		</p>
		<ul type="disc">
				<li>
						<font face="Georgia" size="1">对象属性不存在， </font>
				</li>
				<li>
						<font face="Georgia" size="1">声明了变量但从未赋值。 </font>
				</li>
		</ul>
		<p>
				<font face="Georgia" size="1">注意不能通过与 undefined 做比较来测试一个变量是否存在，虽然可以检查它的类型是否为“undefined”。在以下的代码范例中，假设程序员想测试是否已经声明变量 x ：</font>
		</p>
		<pre>
				<font size="1">
						<font face="Georgia">
								<code>// </code>这种方法不起作用
<code>if (x == undefined)</code><code>    // </code>作某些操作

<code>// </code>这个方法同样不起作用<code>- </code>必须检查
<code>// </code>字符串<code> "undefined"</code><code>if (typeof(x) == undefined)</code><code>    // </code>作某些操作

<code>// </code>这个方法有效
<code>if (typeof(x) == "undefined")</code><code>    // </code>作某些操作</font>
				</font>
		</pre>
		<p>
				<font face="Georgia" size="1">考虑将 undefined 值与null做比较。</font>
		</p>
		<pre>
				<code>
						<font face="Georgia" size="1">someObject.prop == null;</font>
				</code>
		</pre>
		<p>
				<font face="Georgia" size="1">如下情况时，比较的结果为 <b>true</b>， </font>
		</p>
		<ul type="disc">
				<li>
						<font face="Georgia" size="1">如果属性 someObject.prop 包含 null 值， </font>
				</li>
				<li>
						<font face="Georgia" size="1">如果属性 someObject.prop 不存在。 </font>
				</li>
				<li>
						<font face="Georgia" size="1">要检查一个对象属性是否存在，可以使用新的 <b>in</b> 运算符： </font>
				</li>
		</ul>
		<pre>
				<font face="Georgia">
						<font size="1">
								<code>if ("prop" in someObject)
// someObject </code>有属性</font>
						<code>
								<font size="1"> 'prop'<br /><br /><br /><br /></font>
								<h1>
										<a name="jsoperators">
										</a>
										<font face="Georgia" color="#0066ff" size="1">运算符</font>
								</h1>
								<p>
										<font face="Georgia" size="1">JScript 具有全范围的运算符,包括算术、逻辑、位、赋值以及其他某些运算符。</font>
								</p>
								<table cellspacing="0" cols="10" rules="all" border="1" frame="box">
										<tbody>
												<tr valign="top">
														<th width="9%">
																<font face="Georgia" size="1">计算</font>
														</th>
														<th width="10%">
																<font face="Georgia" size="1">逻辑</font>
														</th>
														<th width="10%">
																<font face="Georgia" size="1">位运算</font>
														</th>
														<th width="9%">
																<font face="Georgia" size="1">赋值</font>
														</th>
														<th width="10%">
																<font face="Georgia" size="1">杂项</font>
														</th>
														<th width="10%">
																<font face="Georgia" size="1"> </font>
														</th>
														<th width="9%">
																<font face="Georgia" size="1"> </font>
														</th>
														<th width="10%">
																<font face="Georgia" size="1"> </font>
														</th>
														<th width="12%">
																<font face="Georgia" size="1"> </font>
														</th>
														<th width="11%">
																<font face="Georgia" size="1"> </font>
														</th>
												</tr>
												<tr valign="top">
														<td width="9%">
																<font face="Georgia" size="1">描述</font>
														</td>
														<td width="10%">
																<font face="Georgia" size="1">符号</font>
														</td>
														<td width="10%">
																<font face="Georgia" size="1">描述</font>
														</td>
														<td width="9%">
																<font face="Georgia" size="1">符号</font>
														</td>
														<td width="10%">
																<font face="Georgia" size="1">描述</font>
														</td>
														<td width="10%">
																<font face="Georgia" size="1">符号</font>
														</td>
														<td width="9%">
																<font face="Georgia" size="1">描述</font>
														</td>
														<td width="10%">
																<font face="Georgia" size="1">符号</font>
														</td>
														<td width="12%">
																<font face="Georgia" size="1">描述</font>
														</td>
														<td width="11%">
																<font face="Georgia" size="1">符号</font>
														</td>
												</tr>
												<tr valign="top">
														<td width="9%">
																<a href="mk:@MSITStore:C:\Documents%20and%20Settings\yucc\桌面\《JavaScript%20语言参考》中文版.chm::/html/jsoprsubtract.htm">
																		<font face="Georgia" size="1">负值</font>
																</a>
														</td>
														<td width="10%">
																<font face="Georgia" size="1">-</font>
														</td>
														<td width="10%">
																<a href="mk:@MSITStore:C:\Documents%20and%20Settings\yucc\桌面\《JavaScript%20语言参考》中文版.chm::/html/jsoprnot.htm">
																		<font face="Georgia" size="1">逻辑非</font>
																</a>
														</td>
														<td width="9%">
																<font face="Georgia" size="1">!</font>
														</td>
														<td width="10%">
																<a href="mk:@MSITStore:C:\Documents%20and%20Settings\yucc\桌面\《JavaScript%20语言参考》中文版.chm::/html/jsoprbitwisenot.htm">
																		<font face="Georgia" size="1">按位取反</font>
																</a>
														</td>
														<td width="10%">
																<font face="Georgia" size="1">~</font>
														</td>
														<td width="9%">
																<a href="mk:@MSITStore:C:\Documents%20and%20Settings\yucc\桌面\《JavaScript%20语言参考》中文版.chm::/html/jsoprassign.htm">
																		<font face="Georgia" size="1">赋值</font>
																</a>
														</td>
														<td width="10%">
																<font face="Georgia" size="1">=</font>
														</td>
														<td width="12%">
																<a href="mk:@MSITStore:C:\Documents%20and%20Settings\yucc\桌面\《JavaScript%20语言参考》中文版.chm::/html/jsoprdelete.htm">
																		<font face="Georgia" size="1">删除</font>
																</a>
														</td>
														<td width="11%">
																<font face="Georgia" size="1">delete</font>
														</td>
												</tr>
												<tr valign="top">
														<td width="9%">
																<a href="mk:@MSITStore:C:\Documents%20and%20Settings\yucc\桌面\《JavaScript%20语言参考》中文版.chm::/html/jsoprincdec.htm">
																		<font face="Georgia" size="1">递增</font>
																</a>
														</td>
														<td width="10%">
																<font face="Georgia" size="1">++ </font>
														</td>
														<td width="10%">
																<a href="mk:@MSITStore:C:\Documents%20and%20Settings\yucc\桌面\《JavaScript%20语言参考》中文版.chm::/html/jsgrpcomparison.htm">
																		<font face="Georgia" size="1">小于</font>
																</a>
														</td>
														<td width="9%">
																<font face="Georgia" size="1">&lt;</font>
														</td>
														<td width="10%">
																<a href="mk:@MSITStore:C:\Documents%20and%20Settings\yucc\桌面\《JavaScript%20语言参考》中文版.chm::/html/jsoprlshift.htm">
																		<font face="Georgia" size="1">按位左移</font>
																</a>
														</td>
														<td width="10%">
																<font face="Georgia" size="1">&lt;&lt; </font>
														</td>
														<td width="9%">
																<a href="mk:@MSITStore:C:\Documents%20and%20Settings\yucc\桌面\《JavaScript%20语言参考》中文版.chm::/html/jscompoundassignmentoperators.htm">
																		<font face="Georgia" size="1">运算赋值</font>
																</a>
														</td>
														<td width="10%">
																<font size="1">
																		<font face="Georgia">
																				<i>oP</i>= </font>
																</font>
														</td>
														<td width="12%">
																<a href="mk:@MSITStore:C:\Documents%20and%20Settings\yucc\桌面\《JavaScript%20语言参考》中文版.chm::/html/jsoprtypeof.htm">
																		<font face="Georgia" size="1">typeof 运算符</font>
																</a>
														</td>
														<td width="11%">
																<font face="Georgia" size="1">typeof</font>
														</td>
												</tr>
												<tr valign="top">
														<td width="9%">
																<a href="mk:@MSITStore:C:\Documents%20and%20Settings\yucc\桌面\《JavaScript%20语言参考》中文版.chm::/html/jsoprincdec.htm">
																		<font face="Georgia" size="1">递减</font>
																</a>
														</td>
														<td width="10%">
																<font face="Georgia" size="1">-- </font>
														</td>
														<td width="10%">
																<a href="mk:@MSITStore:C:\Documents%20and%20Settings\yucc\桌面\《JavaScript%20语言参考》中文版.chm::/html/jsgrpcomparison.htm">
																		<font face="Georgia" size="1">大于</font>
																</a>
														</td>
														<td width="9%">
																<font face="Georgia" size="1">&gt;</font>
														</td>
														<td width="10%">
																<a href="mk:@MSITStore:C:\Documents%20and%20Settings\yucc\桌面\《JavaScript%20语言参考》中文版.chm::/html/jsoprrshift.htm">
																		<font face="Georgia" size="1">按位右移</font>
																</a>
														</td>
														<td width="10%">
																<font face="Georgia" size="1">&gt;&gt; </font>
														</td>
														<td width="9%">
																<font face="Georgia" size="1"> </font>
														</td>
														<td width="10%">
																<font face="Georgia" size="1"> </font>
														</td>
														<td width="12%">
																<a href="mk:@MSITStore:C:\Documents%20and%20Settings\yucc\桌面\《JavaScript%20语言参考》中文版.chm::/html/jsoprvoid.htm">
																		<font face="Georgia" size="1">void </font>
																</a>
														</td>
														<td width="11%">
																<font face="Georgia" size="1">void</font>
														</td>
												</tr>
												<tr valign="top">
														<td width="9%">
																<a href="mk:@MSITStore:C:\Documents%20and%20Settings\yucc\桌面\《JavaScript%20语言参考》中文版.chm::/html/jsoprmultiply.htm">
																		<font face="Georgia" size="1">乘法</font>
																</a>
														</td>
														<td width="10%">
																<font face="Georgia" size="1">*</font>
														</td>
														<td width="10%">
																<a href="mk:@MSITStore:C:\Documents%20and%20Settings\yucc\桌面\《JavaScript%20语言参考》中文版.chm::/html/jsgrpcomparison.htm">
																		<font face="Georgia" size="1">小于等于</font>
																</a>
														</td>
														<td width="9%">
																<font face="Georgia" size="1">&lt;=</font>
														</td>
														<td width="10%">
																<a href="mk:@MSITStore:C:\Documents%20and%20Settings\yucc\桌面\《JavaScript%20语言参考》中文版.chm::/html/jsoprurshift.htm">
																		<font face="Georgia" size="1">无符号右移</font>
																</a>
																<u>
																		<font face="Georgia" size="1">
																		</font>
																</u>
														</td>
														<td width="10%">
																<font face="Georgia" size="1">&gt;&gt;&gt; </font>
														</td>
														<td width="9%">
																<font face="Georgia" size="1"> </font>
														</td>
														<td width="10%">
																<font face="Georgia" size="1"> </font>
														</td>
														<td width="12%">
																<a href="mk:@MSITStore:C:\Documents%20and%20Settings\yucc\桌面\《JavaScript%20语言参考》中文版.chm::/html/jsoprinstanceof.htm">
																		<font face="Georgia" size="1">instanceof</font>
																</a>
														</td>
														<td width="11%">
																<font face="Georgia" size="1">instanceof</font>
														</td>
												</tr>
												<tr valign="top">
														<td width="9%">
																<a href="mk:@MSITStore:C:\Documents%20and%20Settings\yucc\桌面\《JavaScript%20语言参考》中文版.chm::/html/jsoprdivide.htm">
																		<font face="Georgia" size="1">除法</font>
																</a>
														</td>
														<td width="10%">
																<font face="Georgia" size="1">/</font>
														</td>
														<td width="10%">
																<a href="mk:@MSITStore:C:\Documents%20and%20Settings\yucc\桌面\《JavaScript%20语言参考》中文版.chm::/html/jsgrpcomparison.htm">
																		<font face="Georgia" size="1">大于等于</font>
																</a>
														</td>
														<td width="9%">
																<font face="Georgia" size="1">&gt;=</font>
														</td>
														<td width="10%">
																<a href="mk:@MSITStore:C:\Documents%20and%20Settings\yucc\桌面\《JavaScript%20语言参考》中文版.chm::/html/jsoprbitwiseand.htm">
																		<font face="Georgia" size="1">按位与</font>
																</a>
																<u>
																		<font face="Georgia" size="1">
																		</font>
																</u>
														</td>
														<td width="10%">
																<font face="Georgia" size="1">&amp; </font>
														</td>
														<td width="9%">
																<font face="Georgia" size="1"> </font>
														</td>
														<td width="10%">
																<font face="Georgia" size="1"> </font>
														</td>
														<td width="12%">
																<a href="mk:@MSITStore:C:\Documents%20and%20Settings\yucc\桌面\《JavaScript%20语言参考》中文版.chm::/html/jsoprnew.htm">
																		<font face="Georgia" size="1">new</font>
																</a>
														</td>
														<td width="11%">
																<font face="Georgia" size="1">new</font>
														</td>
												</tr>
												<tr valign="top">
														<td width="9%">
																<a href="mk:@MSITStore:C:\Documents%20and%20Settings\yucc\桌面\《JavaScript%20语言参考》中文版.chm::/html/jsoprmod.htm">
																		<font face="Georgia" size="1">取模运算</font>
																</a>
														</td>
														<td width="10%">
																<font face="Georgia" size="1">%</font>
														</td>
														<td width="10%">
																<a href="mk:@MSITStore:C:\Documents%20and%20Settings\yucc\桌面\《JavaScript%20语言参考》中文版.chm::/html/jsgrpcomparison.htm">
																		<font face="Georgia" size="1">等于</font>
																</a>
														</td>
														<td width="9%">
																<font face="Georgia" size="1">==</font>
														</td>
														<td width="10%">
																<a href="mk:@MSITStore:C:\Documents%20and%20Settings\yucc\桌面\《JavaScript%20语言参考》中文版.chm::/html/jsoprxor.htm">
																		<font face="Georgia" size="1">按位异或</font>
																</a>
																<u>
																		<font face="Georgia" size="1">
																		</font>
																</u>
														</td>
														<td width="10%">
																<font face="Georgia" size="1">^ </font>
														</td>
														<td width="9%">
																<font face="Georgia" size="1"> </font>
														</td>
														<td width="10%">
																<font face="Georgia" size="1"> </font>
														</td>
														<td width="12%">
																<a href="mk:@MSITStore:C:\Documents%20and%20Settings\yucc\桌面\《JavaScript%20语言参考》中文版.chm::/html/jsoprin.htm">
																		<font face="Georgia" size="1">in</font>
																</a>
														</td>
														<td width="11%">
																<font face="Georgia" size="1">in</font>
														</td>
												</tr>
												<tr valign="top">
														<td width="9%">
																<a href="mk:@MSITStore:C:\Documents%20and%20Settings\yucc\桌面\《JavaScript%20语言参考》中文版.chm::/html/jsopradd.htm">
																		<font face="Georgia" size="1">加法</font>
																</a>
														</td>
														<td width="10%">
																<font face="Georgia" size="1">+</font>
														</td>
														<td width="10%">
																<a href="mk:@MSITStore:C:\Documents%20and%20Settings\yucc\桌面\《JavaScript%20语言参考》中文版.chm::/html/jsgrpcomparison.htm">
																		<font face="Georgia" size="1">不等于</font>
																</a>
														</td>
														<td width="9%">
																<font face="Georgia" size="1">!=</font>
														</td>
														<td width="10%">
																<a href="mk:@MSITStore:C:\Documents%20and%20Settings\yucc\桌面\《JavaScript%20语言参考》中文版.chm::/html/jsoprbitwiseor.htm">
																		<font face="Georgia" size="1">按位或</font>
																</a>
																<u>
																		<font face="Georgia" size="1">
																		</font>
																</u>
														</td>
														<td width="10%">
																<font face="Georgia" size="1">| </font>
														</td>
														<td width="9%">
																<font face="Georgia" size="1"> </font>
														</td>
														<td width="10%">
																<font face="Georgia" size="1"> </font>
														</td>
														<td width="12%">
																<font face="Georgia" size="1"> </font>
														</td>
														<td width="11%">
																<font face="Georgia" size="1"> </font>
														</td>
												</tr>
												<tr valign="top">
														<td width="9%">
																<a href="mk:@MSITStore:C:\Documents%20and%20Settings\yucc\桌面\《JavaScript%20语言参考》中文版.chm::/html/jsoprsubtract.htm">
																		<font face="Georgia" size="1">减法</font>
																</a>
														</td>
														<td width="10%">
																<font face="Georgia" size="1">-</font>
														</td>
														<td width="10%">
																<a href="mk:@MSITStore:C:\Documents%20and%20Settings\yucc\桌面\《JavaScript%20语言参考》中文版.chm::/html/jsoprand.htm">
																		<font face="Georgia" size="1">逻辑与</font>
																</a>
														</td>
														<td width="9%">
																<font face="Georgia" size="1">&amp;&amp;</font>
														</td>
														<td width="10%">
																<font face="Georgia" size="1"> </font>
														</td>
														<td width="10%">
																<font face="Georgia" size="1"> </font>
														</td>
														<td width="9%">
																<font face="Georgia" size="1"> </font>
														</td>
														<td width="10%">
																<font face="Georgia" size="1"> </font>
														</td>
														<td width="12%">
																<font face="Georgia" size="1"> </font>
														</td>
														<td width="11%">
																<font face="Georgia" size="1"> </font>
														</td>
												</tr>
												<tr valign="top">
														<td width="9%">
																<font face="Georgia" size="1"> </font>
														</td>
														<td width="10%">
																<font face="Georgia" size="1"> </font>
														</td>
														<td width="10%">
																<a href="mk:@MSITStore:C:\Documents%20and%20Settings\yucc\桌面\《JavaScript%20语言参考》中文版.chm::/html/jsopror.htm">
																		<font face="Georgia" size="1">逻辑或</font>
																</a>
														</td>
														<td width="9%">
																<font face="Georgia" size="1">||</font>
														</td>
														<td width="10%">
																<font face="Georgia" size="1"> </font>
														</td>
														<td width="10%">
																<font face="Georgia" size="1"> </font>
														</td>
														<td width="9%">
																<font face="Georgia" size="1"> </font>
														</td>
														<td width="10%">
																<font face="Georgia" size="1"> </font>
														</td>
														<td width="12%">
																<font face="Georgia" size="1"> </font>
														</td>
														<td width="11%">
																<font face="Georgia" size="1"> </font>
														</td>
												</tr>
												<tr valign="top">
														<td width="9%">
																<font face="Georgia" size="1"> </font>
														</td>
														<td width="10%">
																<font face="Georgia" size="1"> </font>
														</td>
														<td width="10%">
																<a href="mk:@MSITStore:C:\Documents%20and%20Settings\yucc\桌面\《JavaScript%20语言参考》中文版.chm::/html/jsoprconditional.htm">
																		<font face="Georgia" size="1">条件（三元运算符）</font>
																</a>
														</td>
														<td width="9%">
																<font face="Georgia" size="1">?: </font>
														</td>
														<td width="10%">
																<font face="Georgia" size="1"> </font>
														</td>
														<td width="10%">
																<font face="Georgia" size="1"> </font>
														</td>
														<td width="9%">
																<font face="Georgia" size="1"> </font>
														</td>
														<td width="10%">
																<font face="Georgia" size="1"> </font>
														</td>
														<td width="12%">
																<font face="Georgia" size="1"> </font>
														</td>
														<td width="11%">
																<font face="Georgia" size="1"> </font>
														</td>
												</tr>
												<tr valign="top">
														<td width="9%">
																<font face="Georgia" size="1"> </font>
														</td>
														<td width="10%">
																<font face="Georgia" size="1"> </font>
														</td>
														<td width="10%">
																<a href="mk:@MSITStore:C:\Documents%20and%20Settings\yucc\桌面\《JavaScript%20语言参考》中文版.chm::/html/jsoprcomma.htm">
																		<font face="Georgia" size="1">逗号</font>
																</a>
														</td>
														<td width="9%">
																<font face="Georgia" size="1">,</font>
														</td>
														<td width="10%">
																<font face="Georgia" size="1"> </font>
														</td>
														<td width="10%">
																<font face="Georgia" size="1"> </font>
														</td>
														<td width="9%">
																<font face="Georgia" size="1"> </font>
														</td>
														<td width="10%">
																<font face="Georgia" size="1"> </font>
														</td>
														<td width="12%">
																<font face="Georgia" size="1"> </font>
														</td>
														<td width="11%">
																<font face="Georgia" size="1"> </font>
														</td>
												</tr>
												<tr valign="top">
														<td width="9%">
																<font face="Georgia" size="1"> </font>
														</td>
														<td width="10%">
																<font face="Georgia" size="1"> </font>
														</td>
														<td width="10%">
																<a href="mk:@MSITStore:C:\Documents%20and%20Settings\yucc\桌面\《JavaScript%20语言参考》中文版.chm::/html/jsgrpcomparison.htm">
																		<font face="Georgia" size="1">严格相等</font>
																</a>
														</td>
														<td width="9%">
																<font face="Georgia" size="1">===</font>
														</td>
														<td width="10%">
																<font face="Georgia" size="1"> </font>
														</td>
														<td width="10%">
																<font face="Georgia" size="1"> </font>
														</td>
														<td width="9%">
																<font face="Georgia" size="1"> </font>
														</td>
														<td width="10%">
																<font face="Georgia" size="1"> </font>
														</td>
														<td width="12%">
																<font face="Georgia" size="1"> </font>
														</td>
														<td width="11%">
																<font face="Georgia" size="1"> </font>
														</td>
												</tr>
												<tr valign="top">
														<td width="9%">
																<font face="Georgia" size="1"> </font>
														</td>
														<td width="10%">
																<font face="Georgia" size="1"> </font>
														</td>
														<td width="10%">
																<a href="mk:@MSITStore:C:\Documents%20and%20Settings\yucc\桌面\《JavaScript%20语言参考》中文版.chm::/html/jsgrpcomparison.htm">
																		<font face="Georgia" size="1">非严格相等</font>
																</a>
														</td>
														<td width="9%">
																<font face="Georgia" size="1">!== </font>
														</td>
														<td width="10%">
																<font face="Georgia" size="1"> </font>
														</td>
														<td width="10%">
																<font face="Georgia" size="1"> </font>
														</td>
														<td width="9%">
																<font face="Georgia" size="1"> </font>
														</td>
														<td width="10%">
																<font face="Georgia" size="1"> </font>
														</td>
														<td width="12%">
																<font face="Georgia" size="1"> </font>
														</td>
														<td width="11%">
																<font face="Georgia" size="1"> </font>
														</td>
												</tr>
										</tbody>
								</table>
								<br />
						</code>
				</font>
		</pre>
<img src ="http://www.blogjava.net/exist/aggbug/74663.html" width = "1" height = "1" /><br><br><div align=right><a style="text-decoration:none;" href="http://www.blogjava.net/exist/" target="_blank">yucc</a> 2006-10-11 21:45 <a href="http://www.blogjava.net/exist/archive/2006/10/11/74663.html#Feedback" target="_blank" style="text-decoration:none;">发表评论</a></div>]]></description></item></channel></rss>