Twitter bootstrap 如何仅包括引导Popover功能?

Twitter bootstrap 如何仅包括引导Popover功能?,twitter-bootstrap,popover,Twitter Bootstrap,Popover,我怎样才能只包含Twitter引导中的popover功能?我只想在我的应用程序中使用弹出窗口,不想包含Bootstrap的任何其他功能 我包括了以下内容:src=”https://maxcdn.bootstrapcdn.com/bootstrap/3.3.5/js/bootstrap.min.js“ 但是,当我测试时,我的应用程序中没有执行/识别任何popover函数/方法 任何帮助都将不胜感激。您需要包括jquery.js和bootstrap.js,您可以跳过bootstrap.css,但您的

我怎样才能只包含Twitter引导中的popover功能?我只想在我的应用程序中使用弹出窗口,不想包含Bootstrap的任何其他功能

我包括了以下内容:
src=”https://maxcdn.bootstrapcdn.com/bootstrap/3.3.5/js/bootstrap.min.js“

但是,当我测试时,我的应用程序中没有执行/识别任何popover函数/方法


任何帮助都将不胜感激。

您需要包括
jquery.js
bootstrap.js
,您可以跳过
bootstrap.css
,但您的popover需要设置样式。您可以使用浏览器开发工具查看需要设置样式的popover类

HTML:


展示您的工作或代码在包含bootstrap.js之前是否包含jQuery?您的控制台中有错误吗?
<p>Popover Demo</p>

<a href="#" id="example" rel="popover"
   data-content="This is the body of Popover"
   data-original-title="Demo">pop
</a>
$(function () {
    $('#example').popover();
});