2016-10-26 20:02发布
通过路由切换过去的一个含有pre和code标签的页面,引入highlightjs并执行,结果页面没有任何变化,执行的时间用过afterEach,window.onload和setTimeout都实验过,页面都不会高亮代码,请问各位大神解决办法?
Highlightjs offers a method for "Custom Initialization"with hljs.highlightBlock(), which you should warp in a custom directive:
hljs.highlightBlock()
最多设置5个标签!
Highlightjs offers a method for "Custom Initialization"with
hljs.highlightBlock()
, which you should warp in a custom directive:一周热门 更多>