방금 j 쿼리를 배우기 시작했으며 코드 펜에서 테스트하고 싶지만 의도 한 결과를 얻을 수 없습니다. https://codepen.io/Sunny143/pen/MrJqrM코드 펜에서 jQuery를 사용할 수 없습니다.
다음은,
<head><script src="https://ajax.googleapis.com/ajax/libs/jquery/3.2.1 /jquery.min.js"></script></head>
<body>
<h1>Hello World!</h1>
</body>
아래는
$(document).ready(function(){
$("h1").mouseOver(function(){
alert("mouseover the heading");
});
});
이 하나 제발 도와주세요 내 J 쿼리 코드 내 HTML 코드 사전에 너무 감사드립니다.
편집 : 나는 내 질문이 명확했기 때문에 위에서 주어진 코드 펜 링크의 코드를 변경, 그래서
는 당신이 얻을 기대하고 있음을 시도하고 당신은 무엇을 얻었 는가? –