Last active
August 11, 2019 12:10
-
-
Save wanghaooo/fd0968acd35cbc9a26991299f4536c1f to your computer and use it in GitHub Desktop.
显示全部DOM边框:调试页面元素边界时使用
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
[].forEach.call($$("*"), dom => { | |
dom.style.outline = "1px solid #" + (~~(Math.random() * (1 << 24))).toString(16); | |
}); |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment