0
我在做什麼錯?根據specs使用JavaScript降低域應該可以在IE8和IE7中使用,但是我的代碼只能在Firefox中使用,並在IE中引發參數異常。正在降低document.domain
<html xmlns="http://www.w3.org/1999/xhtml" >
<body onload="alert(document.domain); try { document.domain = 'if.se' } catch(e) { alert(e); }; alert(document.domain);">
</body>
</html>
編輯
的問題可能是因爲兩個字母域名。我測試了三個字母域(iff.se),它的工作,但一個雙字母域名失敗(if.se)
這可真難過。也許你知道我可以在哪裏獲得有關此問題的文檔? – 2010-04-30 08:58:16