다음 작품을 사용할 수있게되지 않지만, 물론하지 MSIE 8 MSIE 8 호환성보기 :JQuery와 인터넷 익스플로러에서 크롬, 파이어 폭스, 오페라와 사파리에서
<html>
<head><title>saffds</title>
<script type="text/javascript" src="http://ajax.googleapis.com/ajax/libs/jquery/1.5.1/jquery.min.js"></script>
<script type="text/javascript"> alert($);
</script>
</head>
<body>afdskakj</body></html>
MSIE은 $이 정의라고 주장 다른 브라우저는 jQuery의 $ -function을 표시합니다.
모든 임시 파일을 삭제하고 인터넷 옵션> 보안> 로컬 인터넷을 "매우 낮음"으로 설정했지만 MSIE를 다시 시작하려고했지만 도움이되지 않습니다.
며칠 전에 jQuery.googleapis.com에서 Jquery가 사용되었지만 지금은 무엇이 변경되지 않았는지 전혀 알지 못합니다.
이 오류의 원인은 무엇입니까?
감사합니다,
- 편집 : 나는 또한 또한 jQuery를에 의존하지 않는 jQuery를하고 otherfile.js '경고에 의존하지 않는 링크 1을 제외하고 작동하지 않는 다음을 테스트했습니다.
<html>
<head><title>saffds</title>
<meta http-equiv="Content-Type" content="text/html; charset=utf-8" />
<script type="text/javascript" src="http://ajax.googleapis.com/ajax/libs/jquery/1.5.1/jquery.min.js"></script>
<script type="text/javascript" src="otherfile.js"></script>
<script type="text/javascript">
$(document).ready(function() {
alert('I love jQuery!');
});
</script>
</head>
<body>afdskakj
<a href="" onclick="alert('Hello world')">Link1</a>
<a href="">Link2</a>
<script type="text/javascript">
$(document).ready(function() {
alert('I love jQuery!');
});
$(document).ready(function() {
$("a").click(function() {
alert("Hello world!");
});
});
</script>
</body></html>
otherfile.js의 내용은 간단하다 : 당신의 jQuery 파일이 아직 다운로드되지 않습니다처럼
alert("otherfile");
귀하의 코드가 그대로 나를 위해 작동 모든 준비가 될 때까지
당신은 기다려야 할 필요가있다. 일시적인 연결 문제이거나 IE 설치 문제 일 수 있습니다. –