![](https://img-blog.csdnimg.cn/20201014180756780.png?x-oss-process=image/resize,m_fixed,h_64,w_64)
html
锐视创想
www.joynop.com
展开
-
js 检测浏览器开发者控制台是否被打开
var element = new Image();Object.defineProperty(element, "id", { get: function () { console.log("debugger start") debugger; },});requestAnimationFrame(function check() { console.dir(element); requestAnimationFrame(check);});原创 2020-12-25 17:26:36 · 2229 阅读 · 0 评论 -
js web简单的路由管理器
灵感来自此博客主要模拟了Router的实现原理客供大家参考index.html<!DOCTYPE html><html lang="en"> <head> <meta charset="UTF-8" /> <meta name="viewport" content="width=device-width, initial-scale=1.0" /> <title>Document - JoyNo原创 2020-12-25 17:23:45 · 370 阅读 · 0 评论