一般在编写文档的时候,每个人的写法千奇百怪。 我想问的是,类似如下问题: 一、目录1 1.1、子目录1.1 二、目录2 2.1 子目录2.1 为了阅读和理解,这样写好么?有什么通用的规范么?(书写规范层面,不是代码实现)
额,我有一个小demo和你说的差不多,能处理下面的这种数据结构。。。不知道你的数据结构是什么样的项目地址:https://github.com/Su739/china预览:https://su739.github.io/china/ var su = [ { title: 'c1 - ecmascript语法', children: [ { title: 'c1.1 - Array', children: [ { title: 'c1.1.1 - Array.map()', }, ], }, ], }, { title: 'c2 - DOM', children: [ { title: 'c2.1 - Node节点', }, { title: 'c2.2 - 事件', children: [ { title: 'c2.2.1 - 事件冒泡', }, { title: 'c2.2.2 - 事件对象', }, { title: 'c2.2.3 - EventListener', }, ], }, { title: 'c2.3 - DOM3', }, ], } ];
额,我有一个小demo和你说的差不多,能处理下面的这种数据结构。。。不知道你的数据结构是什么样的
项目地址:
https://github.com/Su739/china
预览:
https://su739.github.io/china/