$('tr').each(function(){
vat text=$("#text");//搜索內容
if(text!=「所有」){
$(this).css('display','none'); //先隱藏全部tr
//判斷第二列「td:eq(1)」是否包含搜索內容
if($(this).find("td:eq(1)").html().indexOf(text)>=0){
$(this).show(); //顯示搜索到的部分
}
}else{
$(this).show(); //顯示全部內容
}
});