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 的场景判断 |
避免服务端渲染报错。
name | type | default | description |
---|---|---|---|
cb | func | null | 回调接口, cb(bool), bool 为 true 为 mobile |
str | string | only screen and (max-width: 767.99px) |
css 的场景判断 |
npm i enquire-js
8,271
0.2.1
MIT
3.14 kB
5