我遇到了一个问题
类型错误:$(...) .tooltip不是函数
这个问题出现在我使用Lightbox2和Bootstrap时,在jquery文件中初始化tooltip()函数。
$(function() {
$('[data-toggle="tooltip"]').tooltip({
html: true
});
});
<head>
<script src="https://ajax.googleapis.com/ajax/libs/jquery/2.1.4/jquery.min.js"></script>
<script src="bootstrap/js/bootstrap.js"></script>
<script src="main.js"></script>
</head>
<body>
<script src="lightbox-plus-jquery.min.js"></script>
</body>