Nectar of the Programming Masses

    m-device

    1.0.1 • Public • Published

    device.js

    设备检测,并主动添加到html的className中,方便css控制。

    特性

    • IsTouch
    • IsAndroid
    • IsIPad
    • IsIPhone
    • IsIOS
    • IsWinPhone
    • IsWebapp
    • IsXiaoMi
    • IsUC
    • IsWeixin
    • IsBaiduBox
    • IsBaiduBrowser
    • IsChrome
    • IsPC
    • IsHTC
    • IsBaiduWallet
    • IsDebug

    欢迎Fork扩展补充,多谢!

    demo

    Demo

    Keywords

    Install

    npm i m-device

    DownloadsWeekly Downloads

    1

    Version

    1.0.1

    License

    MIT

    Last publish

    Collaborators

    • binnng