Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

文章右侧目录的写法 #15

Open
axuebin opened this issue Sep 20, 2017 · 0 comments
Open

文章右侧目录的写法 #15

axuebin opened this issue Sep 20, 2017 · 0 comments

Comments

@axuebin
Copy link
Owner

axuebin commented Sep 20, 2017

  1. 正则获取一个没有层级的顺序数组
  2. 构建带有层级关系的对象数组
  3. 构建DOM元素,也就是ul、li列表

觉得现在这种方式,特别是我的写法很丑,有待改进。

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

1 participant