<?xml version="1.0" encoding="UTF-8" ?>
<rss version="2.0">
<channel>
<title><![CDATA[向东博客 专注WEB应用 构架之美 --- 构架之美，在于尽态极妍 | 应用之美，在于药到病除]]></title> 
<link>http://www.jackxiang.com/index.php</link> 
<description><![CDATA[赢在IT，Playin' with IT,Focus on Killer Application,Marketing Meets Technology.]]></description> 
<language>zh-cn</language> 
<copyright><![CDATA[向东博客 专注WEB应用 构架之美 --- 构架之美，在于尽态极妍 | 应用之美，在于药到病除]]></copyright>
<item>
<link>http://www.jackxiang.com/post//</link>
<title><![CDATA[写js代码的时候特别注意指明输出浏览器的编码和页面保存编码一致，否则报错]]></title> 
<author>jack &lt;xdy108@126.com&gt;</author>
<category><![CDATA[Php/Js/Shell/Go]]></category>
<pubDate>Wed, 07 Apr 2010 02:59:16 +0000</pubDate> 
<guid>http://www.jackxiang.com/post//</guid> 
<description>
<![CDATA[ 
	<div class="code">&lt;!DOCTYPE html PUBLIC &quot;-//W3C//DTD XHTML 1.0 Transitional//EN&quot; &quot;http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd&quot;&gt;<br/>&lt;html xmlns=&quot;http://www.w3.org/1999/xhtml&quot;&gt;<br/>&lt;meta http-equiv=&quot;Content-Type&quot; content=&quot;text/html; charset=utf-8&quot; /&gt;<br/>&lt;head&gt;<br/>&nbsp;&nbsp;&nbsp;&nbsp;&lt;script type=&quot;text/javascript&quot;&gt;<br/>&nbsp;&nbsp;&nbsp;&nbsp;var arr2 = &#91;&#93;;<br/>&nbsp;&nbsp;&nbsp;&nbsp;var str = &quot;篮球,排球,乒乓球&quot;;<br/>&nbsp;&nbsp;&nbsp;&nbsp;arr2 = str.split(&quot;,&quot;);<br/>&nbsp;&nbsp;&nbsp;&nbsp;alert(arr2&#91;0&#93;);<br/>&nbsp;&nbsp;&nbsp;&nbsp;&lt;/script&gt;<br/>&lt;/head&gt;</div><br/><br/><br/>如果设置：<br/>&lt;meta http-equiv=&quot;Content-Type&quot; content=&quot;text/html; charset=GB2312&quot; /&gt;<br/> 在ie8下报错（ var str = &quot;篮球,排球,乒乓球&quot;; ），Firefox下没有问题（输出：绡悆），其实也是默认输出gbk的，但是不报错，为此，我们必须统一为utf8后，就可以在两种浏览器下显示出篮球了，哈哈哈<br/><br/>--------<br/>编码不一致，往往容易出现一些莫名其妙的报错，我们往往发现写对了但是就是不知道啥原因，那你可能就可得查查你的js文件的编码和浏览器输出的编码是否一致了。
]]>
</description>
</item><item>
<link>http://www.jackxiang.com/post//#blogcomment</link>
<title><![CDATA[[评论] 写js代码的时候特别注意指明输出浏览器的编码和页面保存编码一致，否则报错]]></title> 
<author> &lt;user@domain.com&gt;</author>
<category><![CDATA[评论]]></category>
<pubDate>Thu, 01 Jan 1970 00:00:00 +0000</pubDate> 
<guid>http://www.jackxiang.com/post//#blogcomment</guid> 
<description>
<![CDATA[ 
	
]]>
</description>
</item>
</channel>
</rss>