Giter VIP home page Giter VIP logo

user-agent's People

Contributors

biyingshuai avatar changying01 avatar cheer4chai avatar dependabot[bot] avatar harttle avatar ishinji avatar jaycezhang9602 avatar lhyhappy365 avatar lihuanyu01 avatar mrsunstar avatar oott123 avatar qiansc avatar semantic-release-bot avatar sptember avatar

Stargazers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

Watchers

 avatar  avatar  avatar

user-agent's Issues

Design Notes

这里描述 user-agent 的一些设计思路,有变更应该随时评论或更新:

  • 不复用其他工具,比如 fex-team/ua-device。主要考虑的原因是 1)非 AMD 入口,在搜索不可直接用(当然可以包装)2)接口风格与搜索业务使用方式不符(见下文)。
  • 主要提供断言,而不是返回浏览器信息。例如设计为 .isChrome() 而不是 .getBrowser() === 'chrome'。由于 1)在搜索业务中绝大多数场景是判定(是/否)某个浏览器,而非获取浏览器信息。2)目前搜索仍然是弱类型的JS源码,返回信息判等容易出错。

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.