js 检测浏览器开发者控制台是否被打开
var element = new Image();
Object.defineProperty(element, "id", {
get: function () {
debugger;
},
});
requestAnimationFrame(function check() {
console.dir(element);
requestAnimationFrame(check);
});
See also:
var element = new Image();
Object.defineProperty(element, "id", {
get: function () {
debugger;
},
});
requestAnimationFrame(function check() {
console.dir(element);
requestAnimationFrame(check);
});
See also: