logo
← 返回面试题库

You've written the event listener shown below for a form button, but each time you click the button, the page reloads. Which statement would stop this from happening? <pre><code>button.addEventListener( &#x27;click&#x27;, function (e) { button.className = &#x27;clicked&#x27;; }, false,);</code></pre>

中等javascriptweb-development

想查看完整答案?

登录匠人学院学习中心,获取 STAR 格式回答和详细技术解析

前往学习中心查看答案