<?xml version="1.0" encoding="UTF-8"?>
<rss version="2.0"
	xmlns:content="http://purl.org/rss/1.0/modules/content/"
	xmlns:wfw="http://wellformedweb.org/CommentAPI/"
	xmlns:dc="http://purl.org/dc/elements/1.1/"
	xmlns:atom="http://www.w3.org/2005/Atom"
	xmlns:sy="http://purl.org/rss/1.0/modules/syndication/"
	xmlns:slash="http://purl.org/rss/1.0/modules/slash/"
	>

<channel>
	<title>某人的栖息地 &#187; ie</title>
	<atom:link href="http://www.ooso.net/tag/ie/feed" rel="self" type="application/rss+xml" />
	<link>http://www.ooso.net</link>
	<description>Linux + Apache + Mysql + Php + Flash</description>
	<lastBuildDate>Thu, 19 Jan 2012 01:21:44 +0000</lastBuildDate>
	<language>en</language>
	<sy:updatePeriod>hourly</sy:updatePeriod>
	<sy:updateFrequency>1</sy:updateFrequency>
	<generator>http://wordpress.org/?v=3.3.1</generator>
		<item>
		<title>javascript在ie和firefox下的一些差异</title>
		<link>http://www.ooso.net/archives/362</link>
		<comments>http://www.ooso.net/archives/362#comments</comments>
		<pubDate>Tue, 31 Jul 2007 00:40:30 +0000</pubDate>
		<dc:creator>Volcano</dc:creator>
				<category><![CDATA[firefox]]></category>
		<category><![CDATA[javascript]]></category>
		<category><![CDATA[ie]]></category>

		<guid isPermaLink="false">http://www.ooso.net/index.php/archives/362</guid>
		<description><![CDATA[javascript在ie和firefox下,运行结果有一些差异。下面把最近碰到的情况做个记录，以后也会不断补充以备忘。

object操作
firefox:可支持

				<span class="readmore"><a href="http://www.ooso.net/archives/362" title="javascript在ie和firefox下的一些差异">阅读全文（395字）</a></span>]]></description>
			<content:encoded><![CDATA[<p>javascript在ie和<a href="/index.php?tag=firefox">firefox</a>下,运行结果有一些差异。下面把最近碰到的情况做个记录，以后也会不断补充以备忘。</p>
<ul>
<h2>object操作</h2>
<li>firefox:可支持
<pre><code>var obj = { 'key' : 'aaa', }</code></pre>
</li>
<li>ie:不支持
<pre><code>var obj = { 'key' : 'aaa', }</code></pre>
<p> 会报javascript错误,最后的&#8221;<strong>,</strong>&#8220;必须去掉</li>
<h2><a href="/index.php?tag=javascript">javascript</a>对select元素的option操作</h2>
<li>firefox:可直接设置
<pre><code>option.text = 'foooooooo';</code></pre>
</li>
<li>ie:只能设置
<pre><code>option.innerHTML = 'fooooooo';</code></pre>
</li>
<h2>删除一个select的option</h2>
<li>firefox:可以
<pre><code>select.options.remove(selectedIndex);</code></pre>
</li>
<li>ie7:可以用
<pre><code>select.options[i] = null;</code></pre>
</li>
<li>ie6:需要写
<pre><code>select.options[i].outerHTML = null;</code></pre>
</li>
</ul>
<p>真是万恶的浏览器。</p>
]]></content:encoded>
			<wfw:commentRss>http://www.ooso.net/archives/362/feed</wfw:commentRss>
		<slash:comments>4</slash:comments>
		</item>
	</channel>
</rss>

