+
95
-

js如何检测用户在使用暗模式?

js如何检测用户在使用暗模式?

网友回复

+
15
-

通过window.matchMedia进行匹配,代码如下:

const isDarkMo...

点击查看剩余70%

我知道答案,我要回答