Firefox와 관련하여이 소스 코드의 문제점은 무엇입니까?
이 소스 코드는 Firefox가 아닌 Chrome 및 IE를 사용할 때 완벽하게 작동합니까?
이 코드에서 버그 나 오류를 찾을 수 없습니다.
기능은이 웹 사이트 http://www.w3schools.com/jquery/ 에서 사용됩니다 .
이 문제는 두 개의 분리 된 컴퓨터에서 발생합니다. 하나는 win 7이고 다른 하나는 Win8입니다.
감사!
<html>
<head>
<title></title>
<script src="C:/Users/xxxxxxxx/Desktop/test/jquery-1.11.2.min.js"></script>
<script>
$(document).ready(function(){
$("p").click(function(){
$(this).hide();
});
});
</script>
</head>
<body>
<p>If you click on me, I will disappear.</p>
<p>Click me away!</p>
<p>Click me too!</p>
</body>
</html>
동일한 폴더의 jquery.
c : /.../ mySite / js / jquery-1.11.2.min.js
c : /.../ mySite / index.html
그래서.
<!--this is index.html-->
<html>
<head>
<title></title>
<script src="js/jquery-1.11.2.min.js"></script>
<script>
$(document).ready(function(){
$("p").click(function(){
$(this).hide();
});
});
</script>
</head>
<body>
<p>If you click on me, I will disappear.</p>
<p>Click me away!</p>
<p>Click me too!</p>
</body>
</html>
이 기사는 인터넷에서 수집됩니다. 재 인쇄 할 때 출처를 알려주십시오.
침해가 발생한 경우 연락 주시기 바랍니다[email protected] 삭제
몇 마디 만하겠습니다