SOURCE

$("#J_u")

var checis = ["D2411", "D2301", "D2341", "D2325", "D3339", "D687", "D2387", "G4315"];
var array_trs = new Array();
for (i = 0; i < checis.length; i++) {
    console.log(checis[i]);
    var $cheThis = $("#queryLeftTable a:contains('" + checis[i] + "')");
    $cheThis.css({ "color": "#FF0000" });
    array_trs.push($cheThis.parents("tr").attr("id"));
    $cheThis = null;
}

if (array_trs.length > 0) {
    $("#queryLeftTable tr").each(function (index, item) {
        var todel=true;
        console.log($(item).attr("id"));
        for (j = 0; j < array_trs.length; j++) {
            if($(item).attr("id")==array_trs[j]){
                todel = false;
                break;
            }
        }
        if(todel){
            $(item).remove();
        }
    });
}
console 命令行工具 X clear

                    
>
console