0
这里是通过铬和火狐阅读相同的.js文件...(最新版本) 任何人都可以看到区别? Firefox将'fadeTo'改为'fadeOut'和'fadeIn' 我写的原始脚本是fadeTo 为什么会发生这种情况?Firefox正在更改我的代码?
火狐:
$('document').ready(function(){
$('#errors').css('display', 'none');
$('#errors').fadeIn('fast');
if ($('#errors').length){
$('#content').fadeOut('slow');
}
$('#container').click(function(){
$('#errors').fadeOut('slow');
$('#content').fadeIn('fast');
});
});
铬:
$('document').ready(function(){
$('#errors').css('display', 'none');
$('#errors').fadeIn('slow');
if ($('#errors').length){
$('#content').fadeTo('slow', 0.5);
}
$('#container').click(function(){
$('#errors').fadeOut('fest');
$('#content').fadeTo('slow', 1.0);
});
});
您的原始文件看起来像Chrome版本吗? – Noel 2012-08-13 20:42:09
它显然也改变了'慢'到'快','巨星'到'慢',等等......你确定它不是缓存版本或什么的? – MrOBrian 2012-08-13 20:42:10
这些代码片段是在每个浏览器的相应开发人员工具中看到的吗?你的源代码是什么样的? – jackwanders 2012-08-13 20:42:41