javascript - The jquery-1.8.2 version stops running halfway under Win7 Edge. Could you please take a look at what's going on? Thanks
大家讲道理
大家讲道理 2017-06-14 10:53:36
0
1
855
<script type="text/javascript" src="http://www.anviz.com/Js/jquery-1.8.2.min.js"></script>
//以上只说明引入的jQuery版本
<body>

<script type="text/javascript">
        $(function() {
            //work tab
            var subMenu = $('.tab-container .tab-work-menu .navigation p');
            subMenu.hover(function() {
                $(this).addClass('seleced').siblings().removeClass('seleced');
                var index = $(this).index();

                $('.tab-container .tab-work-box > p').eq(index).show().siblings().hide();
            });
        });
    </script>
</body>

When running this code, after testing, Edge stopped running after running to the last line.


#Click the button and the button will add the selected class, but the corresponding picture below will not be switched.
This code tests fine in other browsers.

Please take a look at what the problem is and don’t report an error, just no response.

大家讲道理
大家讲道理

光阴似箭催人老,日月如移越少年。

reply all(1)
phpcn_u1582

Solved!
ie The browser does not recognize the script tag written outside the body

Latest Downloads
More>
Web Effects
Website Source Code
Website Materials
Front End Template