jumpto是根据标题、副标题、内容,自动生成左侧导航和右侧跳转到指定内容的一个跳转插件。
引入jumpto相关组件
<script type="text/javascript" src="http://code.jquery.com/jquery-1.9.1.js"></script>
<script type="text/javascript" src="jquery.jumpto.js"></script>
<link href='jumpto.css' rel='stylesheet' type='text/css'>
标题和标题子集副标题
<div class="jumpto-block">
<h2>标题 2</h2>
<h3>副标题 1</h3>
<p>我是 副标题 1内容</p>
<h3>副标题 2</h3>
<p>我是 副标题 2内容</p>
<h3>副标题 3</h3>
<p>我是 副标题 3内容</p>
</div>
$(function() {
$(".page_container").jumpto({
firstLevel: "> h2",
secondLevel: "> h3"
});
});
系统已开启自动识别垃圾评论机制,识别到的自动封号,下载出错或者资源有问题请联系全栈客服QQ 1915635791