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