我是 html/css/jquery 的新手,但我开始研究一个小示例网页。我将文件上传到我托管网站的godaddy,但无法让jquery部分正常工作。不确定我是否没有将 .js 文件正确链接到 .html 文件,或者是否还有其他问题。
<!DOCTYPE html>
<html>
<head>
<title>Sample Webpage</title>
<link rel="stylesheet" href="faq.css" />
<link rel='stylesheet' type='text/css' href='http://www.code.jquery.com/ui/1.9.1/themes/base/jquery-ui.css'/>
<script src="http://www.ajax.googleapis.com/ajax/libs/jquery/2.0.0/jquery.min.js">
<script src="http://www.ajax.googleapis.com/ajax/libs/jqueryui/1.9.1/jquery-ui.min.js"></script>
<script type='text/javascript' src='faq.js'></script>
</head>
这是我正在尝试使用的 jquery
$(document).ready(function() {
$('#FAQmenu').accordion({
event: "click",
active: false,
collapsible: true,
autoHeight: false
});
});
提前致谢