0
<html>
    <script src="../jquery.js" type="text/javascript"></script>
    <body>
    </body>
    <script type="text/javascript">
        $(":hidden").show();
    </script>
</html>

Firefox 3.6 会显示$(":hidden").show();,但 IE 8.0 可以正常工作。这是一个错误吗?

PS:我使用的是 jquery 1.4.2。

谢谢。

4

1 回答 1

2

可能是因为它在结束body标签之外,即</body>.

为什么会在那里?

于 2010-09-24T05:45:18.623 回答