abbr:用于在 HTML 文本中查找、突出显示和注释缩写的 JS 函数

时间:2021-06-15 11:37:40
【文件属性】:
文件名称:abbr:用于在 HTML 文本中查找、突出显示和注释缩写的 JS 函数
文件大小:5KB
文件格式:ZIP
更新时间:2021-06-15 11:37:40
JavaScript ABBR Abbr 是一个 JavaScript 库/函数,用于在文本中查找、突出显示和注释缩写。 它通过文本并在标签(或其他选择)中包装首字母缩略词(或任何你想要的),并为它们提供带有解释的title属性(同样,可定制)。 它不需要额外的标记,一切都是自动完成的。 只要告诉它你想解释什么词,它就会做到。 用法 Abbr 采用以下(默认)参数: { // selector in which to search for abbreviations where : 'body' , // abbreviation list - word: explanation words : { } , // Tag used to mark the matches tag : 'abbr' , // Attribute holding the "description"
【文件预览】:
abbr-master
----abbr.js(4KB)
----example.html(4KB)
----LICENSE(1KB)
----.gitignore(16B)
----README.md(1KB)

网友评论