enquire-js

avoid server-side rendering errors.

Downloads in past

Stats

StarsIssuesVersionUpdatedCreatedSize
enquire-js
3910.2.15 years ago5 years agoMinified + gzip package size for enquire-js in KB

Readme

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 的场景判断 |