smart-time-ago:Smart Time Ago是一个小jQuery库,用于更新文档中的相对时间戳

时间:2021-02-19 14:33:18
【文件属性】:
文件名称:smart-time-ago:Smart Time Ago是一个小jQuery库,用于更新文档中的相对时间戳
文件大小:106KB
文件格式:ZIP
更新时间:2021-02-19 14:33:18
JavaScript 前智能时间 Smart Time Ago是一个小jQuery库,用于智能地更新文档中的相对时间戳。 (例如“ 3小时前”)。 它最初是为 (最初是Pragmatic.ly)构建的。 它受到另一个jQuery插件的启发,但具有更大的灵活性和智能性。 安装 您可以将其用作jQuery插件。 Just copy the lib/timeago.js or src/timeago.coffee to your project folder then load it after jQuery. 或者,如果您使用节点,则可以从npm安装它。 $ npm install -g smart-time-ago 为什么聪明? Smart Time Ago将在开始时指定的范围内每60000毫秒(60秒)检查和更新相对时间。 稍后它将检查您示波器中的最新时间,然后将检查时间间隔调整为适当的值。 例如,
【文件预览】:
smart-time-ago-master
----bower.json(1KB)
----src()
--------locales()
--------timeago.coffee(5KB)
----lib()
--------locales()
--------timeago.js(7KB)
----LICENSE(1KB)
----test()
--------index.html(1KB)
--------lib()
--------specs()
----README.md(4KB)
----Cakefile(355B)
----.gitignore(23B)
----index.js(43B)
----package.json(544B)

网友评论