Skip to content

window.matchMedia

使用matchMedia判断是否符合条件。
该方法返回一个MediaQueryList对象