diff --git a/index.html b/index.html index 748515b..a5f6477 100644 --- a/index.html +++ b/index.html @@ -9,6 +9,7 @@ + ECMAScript 6入门 @@ -35,7 +36,6 @@ // run ditto.run(); - - + diff --git a/js/ditto.js b/js/ditto.js index 8303405..5b78fa7 100644 --- a/js/ditto.js +++ b/js/ditto.js @@ -191,6 +191,8 @@ function router() { }).always(function() { clearInterval(loading); + var block = document.getElementById('content') + Prism.highlightElement(block); $(ditto.loading_id).hide(); });