日期
日期库 。
- moment:解析、验证、操作和显示日期 。https://github.com/moment/moment
- moment-timezone:基于 moment.js 的时区库 。https://github.com/moment/moment-timezone
- jquery-timeago:一款支持自动更新模糊时间戳的 jQuery 插件(如:"4 分钟之前") 。https://github.com/rmm5t/jquery-timeago
- timezone-js:让 JavaScript Date 对象拥有时区功能 。使用 Olson zoneinfo 文件记录着时区数据 。https://github.com/mde/timezone-js
- date:拥有人性化的 Date() 方法 。https://github.com/MatthewMueller/date
- ms.js:小巧的毫秒转换工具 。https://github.com/rauchg/ms.js
- timeago.js:一个非常轻量级(~1.7 Kb)的用于将时间转化成xxx时间前格式,例如:8分钟前 。http://timeago.org
字符串
字符串库 。
- selecting:一个允许你获取用户选定文本的库 。https://github.com/EvandroLG/selecting
- underscore.string:扩展了 Underscore.js 的字符串操作 。https://github.com/epeli/underscore.string
- string.js:额外的 JavaScript 字符串方法 。https://github.com/jprichardson/string.js
- he:健壮的 HTML 实体编码/解码器 。https://github.com/mathiasbynens/he
- multiline:多行字符串 。https://github.com/sindresorhus/multiline
- query-string:解析和字符串化 URL 查询字符串 。https://github.com/sindresorhus/query-string
- URI.js:URL 操作库 。https://github.com/medialize/URI.js/)
- jsurl:轻量的 URL 操作库 。https://github.com/Mikhus/jsurl
- sprintf.js:实现字符串格式化 。https://github.com/alexei/sprintf.js
- url-pattern:让 url 和其它字符串进行比正则表达式匹配更简单 。字符串和数据可相互转化 。https://github.com/snd/url-pattern
数字
- Numeral-js:对数字进行格式化和操作的库 。https://github.com/adamwdraper/Numeral-js
- odometer:流畅的数字过渡效果 。https://github.com/HubSpot/odometer
- accounting.js:对数字、金钱、货币进行格式化的轻量库——完全本地化和无依赖 。https://github.com/josscrowcroft/accounting.js
- money.js:一个小巧(1kb)的货币转换库,适用于 web 和 nodeJS 。https://github.com/josscrowcroft/money.js
- Fraction.js:一个有理数库 。https://github.com/infusion/Fraction.js
- Complex.js:一个复数库 。https://github.com/infusion/Complex.js
- Polynomial.js:一个多项式库 。https://github.com/infusion/Polynomial.js
存储
- store.js:为所有浏览器封装了 LocalStorage,而没有使用 cookies 和 flash 。隐秘地使用 localStorage、globalStorage 和用户数据 。https://github.com/marcuswestin/store.js
- localForage:改善后的离线存储 。其封装了 IndexedDB、WebSQL 和 localStorage,拥有操作简单和强大的 API 。https://github.com/mozilla/localForage
- jStorage:jStorage 是一个简单的键值对数据库,用于在浏览器端存储数据 。https://github.com/andris9/jStorage
- cross-storage:获得权限后,能跨域名本地存储 。https://github.com/zendesk/cross-storage
- basket.js:用 localStorage 加载和缓存脚本的资源加载器 。https://github.com/addyosmani/basket.js
- bag.js:可以缓存脚本和加载资源,与 basket.js 相似,但增加了键值对接口和对 localStorage / websql / https://github.com/nodeca/bag.js)undexedDB 的支持 。
特别声明:本站内容均来自网友提供或互联网,仅供参考,请勿用于商业和其他非法用途。如果侵犯了您的权益请与我们联系,我们将在24小时内删除。
