日期:2014-05-17 浏览次数:20716 次
var reader_magazine = $("reader_magazine");
for ( var i = 0; i < typeAll.length; i++) {
for ( var j = 0; j < typeOne.length; j++) {
if (typeAll[i] == typeOne[j]) {
var checkBox = document.createElement("input");
checkBox.setAttribute("type","checkbox");
checkBox.setAttribute("id", typeOne[j]);
checkBox.setAttribute("name", "typeBox");
reader_magazine.appendChild(checkBox);
}
}
}