js动态渲染链接outline为随机颜色

[].forEach.call($("*"),function(a){  
  a.style.outline="1px solid #"+(~~(Math.random()*(1<<24))).toString(16)  
})

  原文链接 http://bbs.html5cn.org/thread-86394-1-1.html

posted on 2015-02-15 11:56  红色十月  阅读(396)  评论(0编辑  收藏  举报