📅  最后修改于: 2022-03-11 15:01:44.345000             🧑  作者: Mango
document.querySelectorAll("input")[1].click();
var image = document.getElementsByTagName("img")[0];
image.setAttribute('src', './img/denzel.jpg');
image.setAttribute('width', '200px');
document.getElementById("h3").innerHTML = "Hoooooray, Good JOB";
const button = document.querySelectorAll("button");
for (var i = 0; i < 6; i++) {
if (parseInt(i % 2) === 0) {
button[i].style.color = "#0000FF";
} else {
button[i].style.color = "#FF0000";
}
}