摘要: 代码实现参考:https://highlightjs.org/ 实现原理,基于link标签的disable。 演示代码: index.html <!DOCTYPE /> <html> <head> <meta charset="utf-8"> <title>setTimeout</title> <l 阅读全文
posted @ 2019-11-07 05:48 xunhanliu 阅读(704) 评论(0) 推荐(0) 编辑
摘要: 转载自:https://www.cnblogs.com/hajerbin/p/7098055.html 解决的问题: 1、代码中改变了dom,又想在后续的代码中操作此dom(自己不知道dom什么时候渲染就绪)。此用法对比Vue的nextTick()。 2、onkeypress等事件的触发是有先后顺序 阅读全文
posted @ 2019-11-07 04:09 xunhanliu 阅读(741) 评论(0) 推荐(0) 编辑