为什么用这个代码就出错误呢?

2016-07-07 14:55 来源:www.chinab4c.com 作者:ecshop专家

eval()'d code错误
  1. <script>(function(){var webW=$('#header').width();$('#litb-nav>li').each(function(){webW-=$(this).width();var p=$(this),a=p.children('a'),b=p.children('div').eq(0),t;if(b){p.hover(function(){clearTimeout(t);t=setTimeout(function(){a.addClass('current');p.addClass('current');b.show()},150)},function(){clearTimeout(t);t=setTimeout(function(){a.removeClass('current');p.removeClass('current');b.hide()},150)})}});$('#allCategory').width(webW);$('#allCategory dd,.sub-nav-container').ie6bgiframe();$('.alignCenter').each(function(){var w=$(this).width()-$(this).parent().width();$(this).css('left',-w/2)});$('#viewAllCateIcon').bind('click',function(){$(this).blur();$('#allCategory dd').toggle()});$('#viewAllCateText').bind('mouseover',function(){$('#allCategory dd').fadeIn('fast')});$(document).bind('click', function (e) {try {var obj = e.target;if (obj.id == 'allCategory') return;var closeable = true;while (obj.tagName != 'BODY') {obj = obj.parentNode;if (obj.id == 'allCategory') closeable = false;}if (closeable) $('#allCategory dd').fadeOut('fast');} catch (err) {$('#allCategory dd').fadeOut('fast');}});$('#curSelector, #UAP-help>dl, #langSelector, #UAP-livechat>dl').hover(function(){$(this).addClass('over')},function(){$(this).removeClass('over')})}());$("#keywords").autocomplete();</script>
复制代码

回答:
把错误提示也贴上上来

解决了!写的时候出了问题

看晕了。。。。。。。。。。。。。。