Underscore.string似乎为 javascript 字符串操作提供了不错的功能。
它似乎具有所有优点:
- 许可证:麻省理工学院
- 依赖项:无,it is an extension for Underscore.js但是it can be used as standalone, without underscore.js
- 重量(缩小和压缩):4KB
- 社区,贡献者:58 contributors on Github
- 历史、贡献:since mid 2010 on Github, contributions seem rather stable although pretty quiet since 2014
除了一点我缺少信息:“浏览器支持/兼容性”。我特别担心旧版本的 IE。
我可以在 Github 上为各种浏览器版本找到一些问题(已修复),但我找不到关于浏览器支持的任何明确声明:
- https://github.com/epeli/underscore.string/pull/37
- https://github.com/epeli/underscore.string/issues?q=IE8
- https://github.com/epeli/underscore.string/issues/115
我还在 StackOverflow 上进行了搜索,并进行了一些谷歌搜索,但没有成功。
我假设没有对浏览器的“官方”支持,所以如果有人有在用户使用旧浏览器 (IE8+) 的生产环境中使用 Underscore.string 的经验,那就太好了。
编辑:
我还在 Github 上直接添加了一个问题来尝试获得答案,如果我从那里听到任何消息,我会更新此页面。参见 https://github.com/epeli/underscore.string/issues/304
最佳答案
正如 epeli 指出的那样 on the issue I posted on the Github project : 在 IE8 上运行测试套件似乎是了解 IE8 是否支持该库的好方法。
因此我这样做了,发现结果是肯定的:Underscore.string javascript 库支持 IE8。
下面看我的测试结果
关于javascript - Underscore.string 浏览器支持,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/25424011/