当前位置:网站首页>Generate directories from web content
Generate directories from web content
2022-07-03 14:03:00 【starcpdk】
Download the installation command
npm install --save tocbot
After downloading dist Below the table of contents copy Go to your project directory
Then introduce the plug-in in the component css and js

In the component's mounted Add this code to the hook function
// Generate directory plug-in initialization
tocbot.init({
// Where to render the table of contents.
tocSelector: '.js-toc', // Where is the generated directory , Here we use css Choose
// Where to grab the headings to build the table of contents.
contentSelector: '.js-toc-content', // Where is the source of the generated directory , Is to generate directories for who
// Which headings to grab inside of the contentSelector element.
headingSelector: 'h1, h2, h3 , h4 , h5 , h6', // Can give several levels of titles generated
// For headings inside relative or absolute positioned containers within content.
hasInnerContainers: true,
});

Pay attention to my notes , Put the corresponding css Put the selector on its own div in
effect 
边栏推荐
- 记录关于银行回调post请求405 问题
- 可编程逻辑器件软件测试
- Redis:Redis的数据结构、key的操作命令
- 挡不住了,国产芯片再度突进,部分环节已进到4nm
- Metal organic framework (MOFs) antitumor drug carrier | pcn-223 loaded with metronidazole | uio-66 loaded with ciprofloxacin hydrochloride( JVM object lifecycle
- Go language web development series 28: solve cross domain access of CORS with gin contrib / CORS
- Go language web development series 25: Gin framework: using MD5 to verify the signature for the interface station
- Go language web development series 29: Gin framework uses gin contrib / sessions library to manage sessions (based on cookies)
- 1px problem of mobile terminal
猜你喜欢
[email protected]纳米颗粒)|纳米金属有机框架搭载雷帕霉素|科研试剂"/>金属有机骨架材料ZIF-8包载姜黄素([email protected]纳米颗粒)|纳米金属有机框架搭载雷帕霉素|科研试剂

交联环糊精金属有机骨架负载甲氨蝶呤缓释微粒|金属-有机多孔材料UiO-66负载黄酮苷类药物|齐岳
![[développement technologique - 24]: caractéristiques des technologies de communication Internet des objets existantes](/img/f3/a219fe8e7438b8974d2226b4c3d4a4.png)
[développement technologique - 24]: caractéristiques des technologies de communication Internet des objets existantes

Metal organic framework (MOFs) antitumor drug carrier | pcn-223 loaded with metronidazole | uio-66 loaded with ciprofloxacin hydrochloride(
[email protected]纳米粒子"/>金属有机骨架MIL-88负载阿霉素DOX|叶酸修饰UiO-66-NH2负载阿霉素[email protected]纳米粒子

Failure of vector insertion element iterator in STL
[email protected](Fe)|甘草次酸修饰金属有机框架材料UiO-66-NH2(简称UiO-66-NH2-GA)"/>MIL-100( Fe) 包裹小分子阿司匹林形成[email protected](Fe)|甘草次酸修饰金属有机框架材料UiO-66-NH2(简称UiO-66-NH2-GA)

Qt学习18 登录对话框实例分析

jvm-类加载

RocksDB LRUCache
随机推荐
Uniapp skills - scrolling components -1
挡不住了,国产芯片再度突进,部分环节已进到4nm
Complete DNN deep neural network CNN training with tensorflow to complete image recognition cases
Comprehensive case of MySQL data addition, deletion, modification and query
MIL-100( Fe) 包裹小分子阿司匹林形成[email protected](Fe)|甘草次酸修饰金属有机框架材料UiO-66-NH2(简称UiO-66-NH2-GA)
RocksDB LRUCache
Golang - command line tool Cobra
1px problem of mobile terminal
jvm-运行时数据区
Go language unit test 3: go language uses gocovey library to do unit test
[ACNOI2022]猜数
Logback log sorting
JVM runtime data area
[how to earn a million passive income]
jvm-对象生命周期
Software testing is so hard to find, only outsourcing offers, should I go?
【BW16 应用篇】安信可BW16模组与开发板更新固件烧录说明
Solve MySQL 1045 access denied for user 'root' @ 'localhost' (using password: yes)
Go language web development series 30: gin: grouping by version for routing
Flutter dynamic | fair 2.5.0 new version features