웹 주소에서 jQuery를 내 HTML로 가져올 때 내 아코디언을 작동시킬 수는 있지만 내 컴퓨터에서 가져온 경우에는 그렇지 않습니다. 나는 잘못된 파일을 가져올 수 있다는 것을 알고 있으며, 그렇다면 알고있는 방법이 있습니까?로컬로 가져올 때 jQuery가 작동하지 않는 이유
<head>
<!--Is my javascript-->
<script type="text/javascript" src="JSabout.js"></script>
<!--Is what I'm importing-->
<script type="text/javascript" src="jquery-ui/jquery-ui.min.js"></script>
<script type="text/javascript" src="jquery-ui/jquery-ui.js"></script>
<script type="text/javascript" src="jquery-ui/external/jquery/jquery.js"></script>
</head>
이
<head>
<!--Is my javascript-->
<script type="text/javascript" src="JSabout.js"></script>
<!--Is what I'm importing-->
<link rel="stylesheet" href="http://code.jquery.com/ui/1.10.3/themes/dot-luv/jquery-ui.css" />
<script src="http://code.jquery.com/jquery-1.9.1.js"></script>
<script src="http://code.jquery.com/ui/1.10.3/jquery-ui.js"></script>
작동하지 않습니다하지만이 나는 또한 테마 (도트 러브)
JSabout.js에는 요소를 아코디언으로 설정하는 코드가 포함되어 있습니까? –
더 설명해주세요. '효과가 없습니다'는 너무 광범위합니다 ... 404입니까? –
글쎄, 웹 페이지와 같은 폴더에'jquery-ui' 폴더가 있고 그 안에 jQuery 스크립트가 있습니까? 브라우저의 디버그 도구의 네트워크 탭에서 해당 파일에 액세스하려고하면 어떻게됩니까? – mason