一行代码给网页元素加边框,用于调试布局 [].forEach.call($$('*'), function (a) {
a.style.outline = '1px solid #' + (~~(Math.random() * (1 << 24))).toString(16);
});
评论