Javascript MVC中的jQuery手风琴
我是MVC新手,打算使用手风琴。当我尝试添加jqueryaccordion和creatediv的所有引用时,accordion不存在/显示 这是我的密码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">
@{
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引用。