1
0
mirror of https://github.com/ruanyf/es6tutorial.git synced 2025-05-24 18:32:22 +00:00

add content_toc

This commit is contained in:
ruanyf 2014-04-22 08:59:23 +08:00
parent b39481845f
commit d35c720fc9

View File

@ -120,13 +120,13 @@ function create_page_anchors() {
if (i === 2){
var ul_tag = $('#content h1')
.after('ul')
.after('<ul></ul>')
.addClass("content-toc")
.attr('id','content-toc');
for (var j = 0; j < headers.length; j++) {
var li_tag = $('<li></li>').text(headers[j]);
// li_create_linkage(li_tag, i);
ul_tag.prepend(li_tag);
ul_tag.append(li_tag);
}
}
}