Flexible, nested table of contents -


未知
未知

软件简介

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');