Jquery Firefox正在更改我的代码?
这是chrome和firefox读取的相同的.js文件…(最新版本) 有人能看出区别吗?firefox将“fadeTo”改为“fadeOut”和“fadeIn” 我最初写的剧本是法德托 为什么会这样 火狐:Jquery Firefox正在更改我的代码?,jquery,firefox,cross-browser,Jquery,Firefox,Cross Browser,这是chrome和firefox读取的相同的.js文件…(最新版本) 有人能看出区别吗?firefox将“fadeTo”改为“fadeOut”和“fadeIn” 我最初写的剧本是法德托 为什么会这样 火狐: $('document').ready(function(){ $('#errors').css('display', 'none'); $('#errors').fadeIn('fast'); if ($('#errors').length){ $('#content').fad
$('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版本吗?它显然还将“慢”改为“快”,将“fest”改为“慢”,等等。。。您确定它不是缓存版本或其他东西吗?这些代码片段是在每个浏览器的相应开发人员工具中看到的吗?你的源代码是什么样子的?你是如何在那些浏览器中查看代码的?你忘了按ctrl-F5并清除缓存文件。哇。。谢谢,很好