请帮忙看为什么不能实现背景颜色切换

 <script>
          (function($){
              $.extend({
                 'focus':(function(){
                     $('li').mouseover(function(){
                         $(this).css('background-color','red');
                     
                   }); 
                 });
                 'blur':(function(){
                    $('li').mouseout(function(){
                         $(this).css('background-color','white'); 
                    });
                 });
              });
          })(jQuery);
          
          $(function(){
              $.focus();
              $.blur();
          })
      </script>


绿野仙踪yy
浏览 1212回答 1
1回答
打开App,查看更多内容
随时随地看视频慕课网APP

相关分类

JavaScript