2012-08-01 114 views

回答

1

这里是你可以怎么做。

$(document).ready(function() { 

     $('.row').each(function(index) { 
     if($(this).text().trim() == '') { 
       $(this).remove(); 
       // or $(this).hide(); 
      } 
     }); 
    });​ 

http://jsfiddle.net/f5BMy/3/