visualforce示例中的jquery选项卡不工作

visualforce示例中的jquery选项卡不工作,jquery,jquery-ui,salesforce,visualforce,Jquery,Jquery Ui,Salesforce,Visualforce,嗨,我正在写一个简单的visualforce页面源代码是 <apex:page > <!-- Begin Default Content REMOVE THIS --> <head> <apex:includeScript value="{!URLFOR($Resource.UIJQuery1822, 'js/jquery-1.7.2.min.js')}"/> <apex:includeScript value="{!

嗨,我正在写一个简单的visualforce页面源代码是

<apex:page >
  <!-- Begin Default Content REMOVE THIS -->

  <head>
   <apex:includeScript value="{!URLFOR($Resource.UIJQuery1822, 'js/jquery-1.7.2.min.js')}"/>
    <apex:includeScript value="{!URLFOR($Resource.Bootstrap, 'bootstrap/js/bootstrap.min.js')}"/>
    <apex:includeScript value="{!URLFOR($Resource.Bootstrap, 'bootstrap/js/bootstrap.js')}"/>
    <apex:stylesheet value="{!URLFOR($Resource.Bootstrap, 'bootstrap/css/bootstrap.min.css')}"/> 
    <apex:stylesheet value="{!URLFOR($Resource.Bootstrap, 'bootstrap/css/bootstrap.css')}"/>
    <apex:stylesheet value="{!URLFOR($Resource.Bootstrap, 'bootstrap/css/bootstrap-responsive.min.css')}"/>
    <apex:stylesheet value="{!URLFOR($Resource.Bootstrap, 'bootstrap/css/bootstrap-responsive.css')}"/>

    <script type="text/javascript">
   $(function() {
        $( "#tabset" ).tabs();
    });
    </script>
  <Title>Hello World</Title></head>
  <Body>
  <div id="tabset">
  <ul>
  <li><a href="#panel1">Tab One</a></li>
  <li><a href="#panel2">Tab Two</a></li>
  <li><a href="#panel3">Tab Three</a></li>
  </ul>
  <div id="panel1"> Hello World1</div>
  <div id="panel2">Hello World2</div>
  <div id="panel3">Hello World3 </div>

  </div>
  </Body>

</apex:page>

  • 你好,世界1 你好,世界2 你好,世界3

    我试图创建一组三个选项卡,但它显示一个无序列表和三个div元素no tab,这意味着jquery代码不工作。有人能告诉我为什么它不工作吗,给我一个建议,如何让它工作?

    JQuery文件是执行某些操作所必需的,而JQuery ui是选项卡所必需的,请检查以下链接jqueryui.com/tabs/required files for tabs with JQuery code.JQuery.com/ui/1.9.2/JQuery-ui.js code.JQuery.com/ui/1.9.2/themes/base/JQuery-ui.css

    检查是否在页面中加载JQuery UI脚本是的,它在我看到的页面中加载正确查看源代码并给我src=“/resource/1354367419000/UIJQuery1822/js/JQuery-1.7.2.min.js”选项卡是否可以使用JQuery-1.7.2.min.js创建??jquery的初学者jquery文件是执行某些操作所必需的,而jquery ui是选项卡所必需的,请检查以下链接/tabs/required files for tabs with jquery非常感谢现在的答案它的工作将它标记为答案如果它真的有帮助