当对象失去焦点时,模糊事件触发。您可以尝试运行以下代码,以了解如何在JavaScript中实现onblur事件。
<!DOCTYPE html> <html> <body> <p>Write below:</p> <input type = "text" onblur = "newFunc(this)"> <script> function newFunc(a) { a.style.background = "green"; } </script> </body> </html>
友情链接: json在线解析 通晓查询 糯晒黄历 姓名打分