我是新來的jQuery和jsTree,我不知道爲什麼我不能工作? 使用本教程: http://tkgospodinov.com/jstree-part-1-introduction/jsTree不工作
這HTML/JavaScript的:
<!DOCTYPE html>
<html lang="en">
<head>
<meta charset="utf-8">
<meta http-equiv="x-ua-compatible" content="ie=edge">
<meta name="description" content="">
<title>
BLA BLA
</title>
<base href="/">
<meta name="viewport" content="width=device-width, initial-scale=1.0">
<!--
<link rel="stylesheet" href="css/styles.css">
-->
<script type="text/javascript" src="http://ajax.googleapis.com/ajax/libs/jquery/1.7.2/jquery.min.js"> </script>
<script type="text/javascript" src="jquery.jstree.js"></script>
<script type="text/javascript">
$(document).ready(function() {
$("#selector").jstree();
});
</script>
</head>
<body>
<div id="selector">
<ul>
<li><a>Team A's Projects</a>
<ul>
<li><a>Iteration 1</a>
<ul>
<li><a>Story A</a></li>
<li><a>Story B</a></li>
<li><a>Story C</a></li>
</ul>
</li>
<li><a>Iteration 2</a>
<ul>
<li><a>Story D</a></li>
</ul>
</li>
</ul>
</li>
</ul>
</div>
</body>
</html>
似乎沒有任何工作。 我得到以下錯誤:
$("#selector").jstree is not a function
我按照你的例子做了,現在我得到: ncaught異常:jsTree熱鍵:不包括jQuery熱鍵插件。 – zehelvion 2012-04-27 07:35:19
Hiya @ArthurWulfWhite檢查上面你丟失的答案hotkey.js' '包括你可以複製粘貼從上面的鏈接。 **從頭開始更新另一個jsfiddle與外部文件sorces ** http://jsfiddle.net/J5ZaK/2/讓我知道它是怎麼回事:)乾杯! – 2012-04-27 07:53:10
再次感謝Tats,這個作品很棒!你是如何找到靜態鏈接的? – zehelvion 2012-04-27 08:02:44