如何在Javascript中检测何时打开或关闭详细信息元素?除了将侦听器附加到click函数并检查是否设置了open属性之外.
javascript html5 details
details ×1
html5 ×1
javascript ×1