전에 놓습니다. 그것은 나에게 다음과 같은 오류 보여줍니다 지금
<html>
<head>
<script src="http://ajax.googleapis.com/ajax/libs/jquery/1.4/jquery.min.js">
<link href="bootstrap.min.css" rel="stylesheet">
<script src="bootstrap.min.js"></script>
</head>
<script>
$('#text').popover()
</script>
<body>
<a id="text" href="#" class="btn btn-link" data-content='I want to visualize this when i click on it !' data-placement="bottom">I see this </a>
</body>
</html>
: 여기에 전체 코드는 그래서 난이 그것을 요구하시는 추가 해결하기 위해 노력 TypeError: $(...).popover is not a function
및
$('#text').popover()
을이 새로운 코드 :
<html>
<head>
<script src="http://ajax.googleapis.com/ajax/libs/jquery/1.4/jquery.min.js">
<link href="bootstrap.min.css" rel="stylesheet">
<script src="bootstrap.min.js"></script>
<script src="bootstrap-tooltip.js"></script>
<script src="bootstrap-popover.js"></script>
</head>
<script>
$('#text').popover()
</script>
<body>
<a id="text" href="#" class="btn btn-link" data-content='I want to visualize this when i click on it !' data-placement="bottom">I see this </a>
</body>
</html>
지금 오류는 없지만 여전히 작동하지 않습니다.
새로운 시도 : jQuery로
<html>
<head>
<script src="http://ajax.googleapis.com/ajax/libs/jquery/1.7.2/jquery.min.js"></script>
<link href="bootstrap.min.css" rel="stylesheet">
<script src="bootstrap.min.js"></script>
<script src="bootstrap-tooltip.js"></script>
<script src="bootstrap-popover.js"></script>
</head>
<script>
$('#text').popover()
</script>
<body>
<a id="text" href="#" class="btn btn-link" data-content='I want to visualize this when i click on it !' data-placement="bottom">I see this </a>
</body>
</html>
좋아, 즉 : 당신이 사용하는,하지만 난 당신이 아래의 코드를 시도하거나 예를 살펴 수 있습니다 버전 3
을 가정하고 부트 스트랩 버전도 명확하지 않다 큰 실수는 네 말이 맞아. 그러나 나는 당신이 슬프고 아직 작동하지 않는 것을했습니다. 이제 firebug 쉘에서이 오류가 발생합니다 :'Error : Bootstrap은 jQuery가 필요하고'ReferenceError : $ is not defined''$ ('text'). popover()'. 하지만 실제로 jsfiddle에서 작동하는이 샘플을 보았습니다. 어떻게 가능합니까? – user2635652
jQuery가 포함되어야한다. 부트 스트랩 스크립트 바로 앞에 – mmjmanders
아직 작동하지 않습니다. 나는 완전한 코드로 대답했다. – user2635652