2017-08-03 9 views
-1

誰でもこのjQueryがIE8で動作しない理由を教えてもらえますか? Chromeでは正常に動作しますが、IEでは正常に動作しません。 jQueryのページ状態誰でもこのjqueryがIE8で動作しない理由を知っていますか?

あたりとして

$(document).ready (function() { 
 
    $('.first-p').hide(); 
 
    $("div.first").click(function() { 
 
    $(this).next().slideToggle(1000); 
 
    }); 
 
});
<div class="first">Toggle first</div> 
 
<p class="first-p">First hidden paragraph.</p> 
 
<div class="first">Toggle second</div> 
 
<p class="first-p">Second hidden paragraph.</p> 
 
\t 
 
<script src="https://ajax.googleapis.com/ajax/libs/jquery/3.2.1/jquery.min.js"></script>

答えて

4

あなたはjQueryの1.12を使用し、Internet Explorerを6-8、オペラ12.1xやSafari 5.1+などの古いブラウザをサポートする必要がある場合。

あなたは3.2.1バージョン

+0

を使用しています。ありがとうございました! –

関連する問題