table表格文字过长隐藏显示后统一增加title

116 阅读1分钟

table表格文字过长隐藏显示后统一增加title

  $('body').mouseover(function(){
      var cell=$(this).find('td');
      $(cell).each(function(){
          $(this).attr('title', $(this).text());
      });
  })