activeElement 也會返回 document.body 如果沒有元素被聚焦。 以下代碼將解決此問題並回退到 ... activeElement 舊瀏覽器將使用 jQuery.data() 來存儲'hasFocus'的值。
確定! 回上一頁