美文网首页
jQuery off事件移除方法is not a functio

jQuery off事件移除方法is not a functio

作者: QDzzzhy | 来源:发表于2018-10-21 11:53 被阅读0次

在使用.off()方法清除事件时,遇到了Uncaught TypeError: $(...).off is not a function at HTMLDocument.<anonymous> 错误信息

具体解决方法为:更换高版本的CDN。初始CDN为<script src="http://ajax.microsoft.com/ajax/jquery/jquery-1.4.2.min.js"></script>

更换为<script src="http://code.jquery.com/jquery-1.11.1.min.js"></script>可以正常使用

相关文章

网友评论

      本文标题:jQuery off事件移除方法is not a functio

      本文链接:https://www.haomeiwen.com/subject/emcbzftx.html