在页面上搜索某个关键字,使关键词高亮; 高亮样式自己可以重新定义: 例如:span.highlight { color:#F00; font-weight:700} 使用高亮: $(‘#fancy-text’).removeHighlight();//清除高亮 $(‘#fancy-text’).highLight(“mode”);//显示高亮 查看demo: 见附件