我是javascript和编码的完整菜鸟。
<script type="text/javascript">
var toptab=new ddtabcontent("tab-a")
toptab.setpersist(true)
toptab.setselectedClassTarget("link") //"link" or "linkparent"
toptab.init()
</script>
<script type="text/javascript">
var bottomtab=new ddtabcontent("tab-b")
bottomtab.setpersist(true)
bottomtab.setselectedClassTarget("link") //"link" or "linkparent"
bottomtab.init()
</script>