We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
这里描述 user-agent 的一些设计思路,有变更应该随时评论或更新:
.isChrome()
.getBrowser() === 'chrome'
The text was updated successfully, but these errors were encountered:
关于版本判断:
现有的接口,返回版本号数组,诸如:[1, 2, 3]。
虽然相对而言容易比较,但是否应当提供版本比较的工具?是否应当独立成工具库?
Sorry, something went wrong.
单独发了一个版本判断的包:versions-compare
目前只支持 整数、字符串、数组(正序和逆序)几种情况,并且只有两个版本是同一个类型才可以,感觉可以满足现有需求
有问题可直接优化
酷炫。
No branches or pull requests
这里描述 user-agent 的一些设计思路,有变更应该随时评论或更新:
.isChrome()
而不是.getBrowser() === 'chrome'
。由于 1)在搜索业务中绝大多数场景是判定(是/否)某个浏览器,而非获取浏览器信息。2)目前搜索仍然是弱类型的JS源码,返回信息判等容易出错。The text was updated successfully, but these errors were encountered: