Warning: file_get_contents(/data/phpspider/zhask/data//catemap/2/jquery/79.json): failed to open stream: No such file or directory in /data/phpspider/zhask/libs/function.php on line 167

Warning: Invalid argument supplied for foreach() in /data/phpspider/zhask/libs/tag.function.php on line 1116

Notice: Undefined index: in /data/phpspider/zhask/libs/function.php on line 180

Warning: array_chunk() expects parameter 1 to be array, null given in /data/phpspider/zhask/libs/function.php on line 181
Javascript MVC中的jQuery手风琴_Javascript_Jquery_Html_Css_Asp.net Mvc - Fatal编程技术网

Javascript MVC中的jQuery手风琴

Javascript MVC中的jQuery手风琴,javascript,jquery,html,css,asp.net-mvc,Javascript,Jquery,Html,Css,Asp.net Mvc,我是MVC新手,打算使用手风琴。当我尝试添加jqueryaccordion和creatediv的所有引用时,accordion不存在/显示 这是我的密码 @{ ViewBag.Title=“在线教练跟踪者|员工报告和商业智能”; } $(函数(){ $(“手风琴”)。手风琴({ 可折叠:正确 }); }); 在第1节中 在第2节中 提前谢谢 <html xmlns="http://www.w3.org/1999/xhtml"> <head runat="server">

我是MVC新手,打算使用手风琴。当我尝试添加jqueryaccordion和creatediv的所有引用时,accordion不存在/显示

这是我的密码

@{
ViewBag.Title=“在线教练跟踪者|员工报告和商业智能”;
}
$(函数(){
$(“手风琴”)。手风琴({
可折叠:正确
});
});
在第1节中
在第2节中
提前谢谢


<html xmlns="http://www.w3.org/1999/xhtml">
<head runat="server">
  <title></title>
  <link rel="stylesheet" href="//ajax.googleapis.com/ajax/libs/jqueryui/1.10.4/themes/smoothness/jquery-ui.css"/>
  <script src="//ajax.googleapis.com/ajax/libs/jquery/1.11.0/jquery.min.js"></script>
  <script src="//ajax.googleapis.com/ajax/libs/jqueryui/1.10.4/jquery-ui.min.js"></script>
  <script>
            $(function () {
                $("#accordion").accordion({
                    collapsible: true
                });
            });
  </script>  
</head>
<body>
    <div id="accordion">
        <h1><a href="#1">Section 1</a></h1> 
         <div>In section 1</div>

         <h1><a href="#2">Section 2</a></h1> 
         <div>In section 2</div>
    </div>
</body>
</html>
$(函数(){ $(“手风琴”)。手风琴({ 可折叠:正确 }); }); 在第1节中 在第2节中

您也可以在此处查看代码:

谢谢您的回复。最后,错误出现在布局页面上。有一个现有的css/js引用。