Flexible, nested table of contents

未知
未知
2008-09-19

Plugin to add a table of contents to a page using jQuery, featuring:

  • the ability to select via selectors exactly which elements would be included (i.e., #content h2 instead of just h2)
  • the ability to nest the lists of sections to reflect the hierarchy of the page

The following returns an unordered list that you can then add to your page:

$.toc('#content h1, h2, h3.foo');

加载中

评论(0)

暂无评论

暂无资讯

暂无问答

暂无博客

返回顶部
顶部