怎么让指定关键字显示红色
var tdColumn = $(this).children("td:eq(1)"); var keyword = $("#KeyWord").val(); if (keyword != "") { var patrn = new RegExp(keyword, "g"); //对应内容列 tdColumn.html(tdColumn.text().replace(patrn, "<font color='red'>" + keyword + "</font>")); }