SCRIPT87:参数无效 [英] SCRIPT87: Invalid argument
本文介绍了SCRIPT87:参数无效的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!
问题描述
我有一个适用于所有浏览器的jquery函数,但在兼容模式下不适用于ie7和ie9。
问题出在这个函数中:
I have a jquery function that works in all browser, but not in ie7 and ie9 in compatibily mode. The problem is in this function:
$('.non-attivo').live('click',function(){
clearInterval(start_slide);
n_btn = "";
for(var i=1;i<$(this).attr('id').length; i++)
n_btn += $(this).attr('id')[i] + "";
slide_pos = parseInt(n_btn, 10);
var margin_slider = slide_pos * 780;
$('#immagini').animate({ marginLeft: "-" + margin_slider + "px"}, 500 );
$('.attivo').attr('class', 'non-attivo');
$(this).attr('class', 'attivo');
start_slide = setInterval(rotate, 4000);
});
错误是:
SCRIPT87:参数无效。
SCRIPT87: Invalid argument.
jquery.min.js,第4行第23894条
jquery.min.js, line 4 character 23894
怎么能我修好了吗?
推荐答案
几天前我遇到了这个问题。
I ran into this problem a few days ago.
如果其他人也偶然发现这个问题,问题是我使用的是HTML按钮元素,而IE9似乎并不知道如何处理。添加HTML填充程序解决了这个问题。
In case anyone else also stumbles upon this, the issue was that I was using HTML button elements which IE9- doesn't seem to know how to handle. Adding a HTML shim solved the problem.
这篇关于SCRIPT87:参数无效的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!
查看全文