IE和Chrome下JS取值不同?
木头是猫 2011-08-16 01:53:32 文件地址:
file:///F:/桌面/1.html
文件内容:
<meta http-equiv="Content-Type" content="text/html; charset=utf-8" />
<script>document.write(window.location.href)</script>
文件格式:
utf-8
=====================================================================
显示不同?
IE:file:///F:/桌面/1.html
Chrome:file:///F:/%E6%A1%8C%E9%9D%A2/1.html
=====================================================================
需要加什么代码才能显示统一呢?