jQuery仿word查找功能关键字高亮显示效果,网页搜索结果文本内容高亮显示代码。
js代码
<script type="text/javascript" src="js/highlight.js"></script>
<script type="text/javascript">
$(function() {
// pull in the new value
var searchTerm = $("#text-main").html();
// remove any old highlighted terms
// $('#Context').removeHighlight();
// disable highlighting if empty
if(searchTerm) {
// highlight the new term
$("#Context").highlight(searchTerm);
}
})
</script>
系统已开启自动识别垃圾评论机制,识别到的自动封号,下载出错或者资源有问题请联系全栈客服QQ 1915635791