jQuery   发布时间:2022-04-19  发布网站:大佬教程  code.js-code.com
大佬教程收集整理的这篇文章主要介绍了jquery – 获取错误:未捕获TypeError:undefined不是一个函数bootstrap.js:29(匿名函数)bootstrap.js:29(匿名函数)大佬教程大佬觉得挺不错的,现在分享给大家,也给大家做个参考。
我收到以下错误
Uncaught TypeError: undefined is not a function bootstrap.js:29
(anonymous function) bootstrap.js:29
(anonymous function)

在我的visualforce页面在开发者控制台。我想在Visualforce中集成twitter-bootstrap

这是完整的视觉力代码

<apex:page standardStylesheets="false" showHeader="false" sidebar="false">
    <!-- Begin Default Content REMOVE THIS -->

    <head>
        <apex:stylesheet value="{!URLFOR($resource.bootstrap,'bootstrap/css/bootstrap.css')}"
        />
        <script src="https://ajax.googleapis.com/ajax/libs/jquery/1.9.0/jquery.min.js"
        type="text/javascript"></script>
        <apex:stylesheet value="{!URLFOR($resource.bootstrap,'bootstrap/css/bootstrap.min.css')}"
        />
        <apex:includeScript value="{!URLFOR($resource.bootstrap,'bootstrap/js/bootstrap.js')}"
        />
        <apex:includeScript value="{!URLFOR($resource.bootstrap,'bootstrap/js/bootstrap.min.js')}"
        />

    </head>

    <body>
        <div id="force">
            <div class="input-append" align="center" style="padding-top:20px;">
                <input type="text" name="q" class="span2 search-query" placeholder="Snipp or Tag"
                />
                <button type="submit" class="btn">Search</button>
                <div class="pull-right">
                    <button class="btn btn-priMary active"><i class="icon-white icon-plus"></i> A</button>
                    kjhkjdfgdgdfgdfgdfgdfgdgfgdfg
                    <button class="btn btn-priMary active"
                    style="margin-right:50px;"><i class="icon-white icon-bullhorn"></i> Fee</button>
                </div> 
            </div>
        </div>
    </body>
</apex:page>

以下是jady-developer-edition.ap1.force.com的链接

任何人可能会对可能出了什么问题提出一些看法。

解决方法

您需要包括jquery之前包括引导js文件
<script type="text/javascript" src="https://ajax.googleapis.com/ajax/libs/jquery/1.9.0/jquery.min.js"></script>
<script type="text/javascript" src="/resource/1358914798000/bootstrap/bootstrap/js/bootstrap.js"></script>

请注意,您不需要bootstrap.js和bootstrap.min.js

大佬总结

以上是大佬教程为你收集整理的jquery – 获取错误:未捕获TypeError:undefined不是一个函数bootstrap.js:29(匿名函数)bootstrap.js:29(匿名函数)全部内容,希望文章能够帮你解决jquery – 获取错误:未捕获TypeError:undefined不是一个函数bootstrap.js:29(匿名函数)bootstrap.js:29(匿名函数)所遇到的程序开发问题。

如果觉得大佬教程网站内容还不错,欢迎将大佬教程推荐给程序员好友。

本图文内容来源于网友网络收集整理提供,作为学习参考使用,版权属于原作者。
如您有任何意见或建议可联系处理。小编QQ:384754419,请注明来意。