问题描述
似乎为JavaScript字符串操作提供了不错的功能。
似乎有所有的好处:
- 许可证:MIT
- 依赖:无,,但是
- weight(已缩小和已压缩):4KB
- 社区,贡献者:
- 历史,贡献:
除了一个我缺少info的信息:浏览器支持/兼容性。我特别担心旧版本的IE。
我可以找到一些问题(已经修复)在Github上的各种浏览器版本,但我找不到任何清除关于浏览器支持的语句:
我也在StackOverflow&没有运气。
我认为没有官方支持浏览器,所以如果有人在生产环境中使用Underscore.string的经验,
我还直接在Github上添加了一个问题,试图得到一个答案,如果我听到任何东西,我会更新这个页面。请参见:在IE8上运行测试套件似乎是一个好的方法来确定这个库是否支持IE8。
因此,我这样做,并发现结果是积极的:IE8是由Underscore.string javascript库支持。
请参阅下面的测试结果
Underscore.string seems to provide nice features for javascript string manipulation.
It seems to have all the good points:
- license : MIT
- dependencies : none, it is an extension for Underscore.js but it can be used as standalone, without underscore.js
- weight (minified & gzipped): 4KB
- community, contributors: 58 contributors on Github
- history, contributions: since mid 2010 on Github, contributions seem rather stable although pretty quiet since 2014
Except one point for which I am missing info: the "browser support/compatibility". I am especially worried about older version of IE.
I could find some issues (who have been fixed) on Github for various browser versions, but I could not find any clear statement regarding the browser support:
- 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
I also searched on StackOverflow & did some googling but no luck.
I assume there is no "official" support for browsers so if anyone has experience in using Underscore.string in a production environment where users are on old browsers (IE8+) that would be great.
EDIT:
I also added a question directly on Github to try to get an answer, I'll update this page if I hear anything from there. See https://github.com/epeli/underscore.string/issues/304
As pointed out by epeli on the issue I posted on the Github project: running the test suite on IE8 seems a good way to find out if this library is supported by IE8.
Hence I did so, and found out that the result was positive: IE8 is supported by Underscore.string javascript library.
See the result of my test below
这篇关于Underscore.string浏览器支持的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持!