차근차근/JAVA Script

jQuery v2.1.4 , ie8 , addEventListener

예쁜꽃이피었으면 2015. 8. 21. 15:14

jQuery v2.1.4 , ie8 , addEventListener


ie8에서 에러가 난다.. 화면이 깨짐



[ 방법1. ]

https://books.google.co.kr/books?id=zfVAAwAAQBAJ&pg=PT9&lpg=PT9&dq=%27addEventListener%27+,xp,ie8&source=bl&ots=zVyMw1P6_P&sig=Z1dePoyUUOO7aV1QXMoRjZ8_B0s&hl=ko&sa=X&ved=0CFEQ6AEwBmoVChMIhJbg7qC5xwIVASyUCh3AxQvs#v=onepage&q='addEventListener'%20%2Cxp%2Cie8&f=false



[ 방법2. ]

https://forum.jquery.com/topic/jquery-2-1-1-min-js-object-doesn-t-support-property-or-method-addeventlistener

이미 되어있는 부분..

<!DOCTYPE html>
<html>
<head>
 <meta http-equiv="X-UA-Compatible" content="IE=edge;" />

The doctype sets standards mode, and the meta forces IE to use the latest internal version.


OR don’t use a 2.x jQuery.


[ 방법3. ]
<!--[if lt IE 9]>
<script src="http://code.jquery.com/jquery-1.10.2.min.js"></script>
<![endif]-->
<!--[if gte IE 9]>
<script src="http://code.jquery.com/jquery-2.0.3.min.js"></script>
<![endif]-->
<!--[if !IE]> -->
<script src="http://code.jquery.com/jquery-2.0.3.min.js"></script>
<!-- <![endif]-->




일단 보류..

반응형