gpt4 book ai didi

jquery - 获取错误 : Uncaught TypeError: undefined is not a function bootstrap. js :29 (anonymous function) bootstrap. js:29(匿名函数)

转载 作者:技术小花猫 更新时间:2023-10-29 11:58:34 26 4
gpt4 key购买 nike

我收到以下错误

    Uncaught TypeError: undefined is not a function bootstrap.js:29
(anonymous function) bootstrap.js:29
(anonymous function)

在开发人员控制台的 visualforce 页面中。我正在尝试将 twitter-bootstrap 集成到 Visualforce

这是完整的视觉力代码

    <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

的链接

任何人都可以阐明可能存在的问题。

最佳答案

您需要在包含 Bootstrap js 文件之前包含 jquery。

<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 - 获取错误 : Uncaught TypeError: undefined is not a function bootstrap. js :29 (anonymous function) bootstrap. js:29(匿名函数),我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/14480616/

26 4 0
Copyright 2021 - 2024 cfsdn All Rights Reserved 蜀ICP备2022000587号
广告合作:1813099741@qq.com 6ren.com