TocJS is a jQuery Plugin and open-source script licensed under the MIT License.

Based on the headings tag (h1 - 6) of the article, the plugin automatically creates the table of contents.

There are functions such as selection of heading target tag (h1-6), display / non - display of table of contents number, exclusion setting and so on.

For details, please read the article in this Docs.