js实现搜索字高亮


最后调用方法:

<script type="text/javascript">
fHl(document.body, '高亮');   //对页面body的区域中的“高亮”文字背景着色
script>

你可能感兴趣的:(web前端)