Bootstrap工具提示无法使用错误'工具提示不是函数'(MVC)

时间:2015-07-03 08:03:02

标签: javascript jquery css twitter-bootstrap

我正在使用bootstrap实现工具提示。我的代码如下:

查看:

<div class="CompleteRegistrationHeadingText glyphicon glyphicon-question-sign" data-toggle="tooltip" title="Test!"></div>

脚本:

$(document).ready(function () {
    $('[data-toggle="tooltip"]').tooltip();
});

我从布局中渲染js文件和css:

@Styles.Render("~/Content/css")
@Styles.Render("~/Content/css/bootstrap")
@Scripts.Render("~/bundles/modernizr")
@Scripts.Render("~/bundles/jquery")
@Scripts.Render("~/bundles/jqueryui")
@Scripts.Render("~/bundles/bootstrap")

我的捆绑包如下:

bundles.Add(new StyleBundle("~/Content/css").Include("~/Content/site.css",
                "~/Content/DocThemes/*Layout.css", "~/Content/DocThemes/Utility.css"));
bundles.Add(new StyleBundle("~/Content/css/bootstrap").Include("~/Content/bootstrap.*", "~/Content/bootstrap-theme.*"));
bundles.Add(new ScriptBundle("~/bundles/modernizr").Include(
                        "~/Scripts/modernizr-*"));
bundles.Add(new ScriptBundle("~/bundles/jquery").Include(
                        "~/Scripts/jquery-{version}.js"));
bundles.Add(new ScriptBundle("~/bundles/jqueryui").Include(
                        "~/Scripts/jquery-ui-{version}.js"));
bundles.Add(new ScriptBundle("~/bundles/bootstrap").Include(
                        "~/Scripts/bootstrap.*"));

但是当我运行我的网站时,我得到以下错误: enter image description here

工具提示功能不起作用。

我在实施方面做错了吗?

0 个答案:

没有答案