2014-10-13 4 views
1

나는이 플러그인을 몇 시간 동안 사용하려고 노력해 왔으며 그렇게 할 수없는 것처럼 보입니다. 나는 jquery에 대해 상당히 익숙하다. 그래서 내가 바보 같은 말을하는 것에 대해 사과한다. 사이트에서 제공되는 튜토리얼을 따라했지만 아무런 운이 없었다. 어쨌든 내 코드는 지금까지 있습니다 :jvectormap uncaught typeerror

<!doctype html> 
<html> 
<head> 
    <meta charset="utf-8"> 
    <title> vectormap </title> 
    <link rel="stylesheet" media="all" href="css/jquery-jvectormap-1.2.2.css"> 
    <script src="js/jquery-1.8.2.js"></script> 
    <script src="js/jquery-jvectormap-1.2.2.min.js"></script> 
    <script src="js/jquery-mousewheel.js"></script> 
    <script src="js/jvectormap.js"></script> 
    <script src="js/map.js"></script> 
    <script src="js/jquery-jvectormap-au-mill-en.js"></script> 
</head> 
<body> 
    <div id="map" style="width: 100%; height: 400px"></div> 
    <script> 
    $(function(){ 
     $('#map').vectorMap({map: 'au_mill_en'}); 
    }); 
    </script> 
</body> 
</html> 

오류는되어지고 메신저 : 정의되지 아니하는 기능

감사합니다 : 1. catch되지 않은 형식 오류 : 속성을 읽을 수 없습니다 것은 정의되지 않은 2 catch되지 않은 형식 오류의 '지도' 이것이 나의 머리를 안에서하고있는 것에 따라 어떤 도움이라도!! 제대로

답변

0

들여 쓰기하지 않는

PS 죄송

건배 당신은 당신의 플러그인 라이브러리 중 하나를 포함하기 전에 jQuery 라이브러리를 포함해야합니다. 그래서 첫 번째 라이브러리로 선 아래 넣어 포함 -

<script src="js/jquery-1.8.2.js"></script> 

아래와 같이
<head> 
<meta charset="utf-8"> 
<title> vectormap </title> 
<!--<link rel="stylesheet" media="all" href="css/jquery-jvectormap.css" /> --> 
<link rel="stylesheet" media="all" href="css/jquery-jvectormap-1.2.2.css" /> 
<!-- must be the first library to include as this is prerequisite for other plugins . lib--> 
<script src="js/jquery-1.8.2.js"></script> 
<script src="js/jquery-jvectormap-au-mill-en.js"></script> 
<script src="js/jquery-mousewheel.js"></script> 
<script src="js/jquery-jvectormap-1.2.2.min.js"></script> 
<script src="js/jquery-jvectormap.js"></script> 
<script src="js/jvectormap.js"></script> 
<script src="js/map.js"></script> --> 
</head> 
솔루션은 초기 문제를 해결하고 난 내 코드를 업데이트하지만 지금은 두 개의 서로 다른 오류 1.Uncaught 형식 오류를 얻을
+0

: 정의되지 않은 속성 'maps'를 읽을 수 없습니다. 2.Uncaught TypeError : 정의되지 않은 함수는 없습니다. 내 생각에 .js 파일이 누락되었습니다. – baldchampion

+0

첫 번째 문제는 사용중인 플러그인에 대한 API 문서를 참조해야합니다. 두 번째 오류는 'id'또는 'class' 또는 다른 jquery 셀렉터가 될 수 있습니다. –

관련 문제