this.closest()在IE中报错的缘由及解决办法

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

解决方法:将this.closest()换成$(this).closest()便可this

相关文章
相关标签/搜索