文字忽隐忽现的jQuery代码加入变量出现错误
$(document).ready(function(){ var a=true $('p').mousemove(function(event){ if a=true { a=false; $(event.target).fadeOut(200) ; $(event.target).fadeIn(100) ; a=true; } });});$(document).ready( function() { $('p').mousemove( function() { if (!$(this).is(":animated")) $(this).fadeOut(200, function() { $(this).fadeIn(100); }); });});