jQuery搜索词高亮显示
用法 突出body元素的所有内容$("body").highlightSearchTerms();强调使用自定义标签名称$("body").highlightSearchTerms({ tagName: "span" });强调使用自定义类名:$("body").highlightSearchTerms({ className: "keyword" });支持自定义引用模式:$("body").highlightSearchTerms({ referrerPatterns: [ "^http://example\\.com.+[&?]query=([^&]+).*$" ] });