Uncaught TypeError: $(...).slide is not a function
同时,平时没有问题的轮播图,也不轮播了。检查并解决步骤如下:
1.顺着错误提示点过去,发现就是slide函数无法运行。查看相关介绍,表示是jq文件进行了重复引用,且版本不同
如下图相关资料描述:
2. 经过全网页检查,发现确实引用了两个jq文件。
第1282行,引入了一个7.7.2版本的jq;
第1342行引用了一个1.11.3版本的jq。
3.且发现1.11.3这个jq是包裹在一个应用插件标签之内的。找到该插件,发现是一个百度收录检测的插件,删除它不影响页面加载,点击已启用,变为已禁用,或者直接卸载即可。
4.刷新页面,发现1.113的jq文件消失了,并且报错没有了,即解决该问题!
- Javascript TypeError Uncaught function slidejavascript typeerror uncaught function properties typeerror undefined uncaught addeventlistener typeerror uncaught property typeerror undefined uncaught property typeerror countable uncaught argument constructor typeerror uncaught错误 emitsoptions properties typeerror uncaught insertadjacenthtml typeerror uncaught property getusermedia typeerror navigator function defineconfig typeerror function not