Skip to content

Latest commit

 

History

History
30 lines (24 loc) · 500 Bytes

README.md

File metadata and controls

30 lines (24 loc) · 500 Bytes

device.js

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

device.js

特性

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

欢迎Fork扩展补充,多谢!

demo

Demo