<li>
<button id="button1" class="button">button1</button>
<div id="light1" class="light"></div>
</li>
<li>
<button id="button2" class="button">button2</button>
<div id="light2" class="light"></div>
</li>
<li>
<button id="button3" class="button">button3</button>
<div id="light3" class="light"></div>
</li>
请帮助。为什么有时会失败。控制台中未显示错误。只是打印测试通过了一段时间,我还添加了等待时间