input checkbox body

var e = "";
$("#format input[type=checkbox]").each(function () {
if (this.checked) {
e = e + this.name + ",";
}
});

$("body").css("background-color", "#" + hex);

原文地址:https://www.cnblogs.com/yuluhuang/p/3280456.html