我正在使用https://github.com/caprica/jquery-orgchart
创建组织结构图我正在使用此组织结构图http://capricasoftware.co.uk/#/projects/orgchart/tutorial/basic-interaction
我希望每个节点中的锚点链接在用户点击它时应该转到该链接但是它不起作用它只有在点击每个节点时才会折叠到子子节点。
这是mycode
<script>
function test1()
{
alert('test prompt');
}
</script>
<ul id="basic-interaction" class="hide">
<li>
<em>Batman<button onclick="test1()">test</button></em>
<ul>
<li>
Batman Begins<br>
<img class="star" src="assets/images/tutorial/star-one.png">
<img class="star" src="assets/images/tutorial/star-one.png">
<img class="star" src="assets/images/tutorial/star-one.png">
<img class="star" src="assets/images/tutorial/star-one.png">
<ul>
<li>Ra's Al Ghul</li>
<li>Carmine Falconi</li>
</ul>
</li>
<li>
The Dark Knight<br>
<img class="star" src="assets/images/tutorial/star-one.png">
<img class="star" src="assets/images/tutorial/star-one.png">
<img class="star" src="assets/images/tutorial/star-one.png">
<img class="star" src="assets/images/tutorial/star-one.png">
<img class="star" src="assets/images/tutorial/star-one.png">
<ul>
<li>Joker</li>
<li>Two Face</li>
</ul>
</li>
<li>
The Dark Knight Rises<br>
<img class="star" src="assets/images/tutorial/star-one.png">
<img class="star" src="assets/images/tutorial/star-one.png">
<img class="star" src="assets/images/tutorial/star-one.png">
<img class="star" src="assets/images/tutorial/star-one.png">
<img class="star" src="assets/images/tutorial/star-half.png">
<ul>
<li>Bane</li>
<li>Talia Al Ghul</li>
</ul>
</li>
</ul>
</li>
</ul>