HTML出现jQuery.Deferred exception: undefined is not a function,已解决

jQuery的 ( " s e l e c t o r " ) . l o a d ( f u n c t i o n ( ) ) ("selector").load(function())加载后响应函数或 (window).unload(function())离开或刷新页面后响应函数,toggle事件顺序执行函数出现:在这里插入图片描述
错误原因:jQuery3.0之后不支持load()和unload()事件,jQuery1.8之后不支持load()和unload()事件,所以要用这几个事件就要把jQuery换成之前的版本。

发布了53 篇原创文章 · 获赞 1 · 访问量 2785

猜你喜欢

转载自blog.csdn.net/weixin_43873198/article/details/103810064