关于jquery升级至1.8版本之后的兼容问题Uncaught TypeError: $(...).size is not a function

admin5年前IT技术2716
之前也遇到过这种问题Uncaught TypeError: $(...).size is not a function
 
 
控制台报错如上图,打开Frame.js可以看到里面定义大小的全是.size()
 
而jquery1.8版本之后是不支持.size()的,需要把所有的.size()换成.length就不再报错了
 

注意:.length后面不带括号

 
 
 
 

相关文章

ubuntu 远程连接 22 端口

安装OpenSSHUbuntu缺省没有安装SSH Server,使用以下命令安装:sudo apt-get install openssh-server openssh-client不过Ubuntu缺...

php上传路径问题

php图片上传不认"\"C:\Users\Administrator\Desktop\"只认C:/Users/Administrator\Desktop/...

linux 挂载win7共享文件夹的方法

mount -t cifs -o user=administrator,password=000000 //192.168.1.2/gongxiang /mnt/share...

汇成民政部门建站CMS系统V3.1

汇成民政部门建站CMS系统V3.1˂a target="_blank" href="download/hcmingzhenv3.1.rar"˃官方下载演示地址:ceshi/zhengfucmsv1/后...

云图框架

 https://themes.getbootstrap.com/云图框架 ...

MobaXterm监控服务器的资源

MobaXterm监控服务器的资源

使用服务器的时候比较喜欢随时查看的服务器资源使用情况,比如内存,CPU,网速,磁盘使用等情况,一次偶然的机会发现了如果你发现你的会话窗口底部没有,可以这样开启: Settings→SSH→勾选Remo...

发表评论    

◎欢迎参与讨论,请在这里发表您的看法、交流您的观点。