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 的场景判断 |
avoid server-side rendering errors.
<script type="module">
import enquireJs from 'https://cdn.skypack.dev/enquire-js';
</script>
避免服务端渲染报错。
name | type | default | description |
---|---|---|---|
cb | func | null | 回调接口, cb(bool), bool 为 true 为 mobile |
str | string | only screen and (max-width: 767.99px) |
css 的场景判断 |