請我如何使第二個(gè)如果條件運(yùn)行后i大于9var i = 0;var x = document.querySelector(".start");x.addEventListener("click", function () { if (i < 10) { console.log(i); i++; }})if (i === 10) { console.log(i);} <button class="start">start</button>
滿足條件后運(yùn)行其余代碼
繁星淼淼
2022-08-04 10:05:04