enquire-js
avoid server-side rendering errors.
Last updated 7 years ago by jljsj33 .
MIT · Repository · Bugs · Original npm
$ cnpm install enquire-js 
SYNC missed versions from official npm registry.

enquire-js

避免服务端渲染报错。

enquireScreen(cb, str);

name type default description
cb func null 回调接口, cb(bool), bool 为 true 为 mobile
str string only screen and (max-width: 767.99px) css 的场景判断

Current Tags

  • 0.2.1                                ...           latest (7 years ago)

2 Versions

  • 0.1.3                                ...           7 years ago
  • 0.2.1                                ...           7 years ago
Maintainers (1)
Downloads
Today 0
This Week 0
This Month 0
Last Day 0
Last Week 0
Last Month 0
Dependencies (1)
Dev Dependencies (2)
Dependents (0)
None

Copyright 2013 - present © cnpmjs.org