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

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

注意:.length后面不带括号

 
 
 
 

相关文章

信息

支付宝:帐号:zhoukouhu@126.com户名: 周扣虎支付宝收款主页:https://me.alipay.com/huicheng 招商银行帐号:6225 8821 1195 501...

设置nginx不限制域名的访问

关键是listen 80 default;...

女白领发量剩3成 中医:遗传加上压力大常熬夜|女白|领发-社会资讯-川北在线

女白领发量剩3成 中医:遗传加上压力大常熬夜 江苏南京一公司女白领,今年25岁。她因遗传原因,加上平时工作压力大,经常熬夜,脱发严重,现在发量只剩30%。中医魏跃钢说,国内脱发人数非常庞大,多数是20...

设置apach多站点的配置方法

 Include conf/vhost/*.conf...

mount:is write-protected, mounting read-only解决方案

window10升级之后就遇到mount: **** is write-protected, mounting read-onlymount: cannot mount *** read-only尝试...

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

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

发表评论    

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