// 生成随机颜色代码
(~~(Math.random()*(1<<24))).toString(16)
// 给所有元素添加随机色的外边框线
[].forEach.call($$("*"),function(a){
a.style.outline="1px solid #"+(~~(Math.random()*(1<<24))).toString(16)
});
Created
May 4, 2016 05:39
-
-
Save zuoRambo/3e82280d05b61c5e7a259e6ab074fe0c to your computer and use it in GitHub Desktop.
javascript snippets
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment