this.closest()在IE中報錯的緣由及解決辦法

closest()定義在jquery中,不能在原生的js中使用jquery

解決方法:將this.closest()換成$(this).closest()便可this

相關文章
相關標籤/搜索