navigator

js怎么判断用的什么浏览器?

我们在调H5页面时总是需要判断用的什么设备打开的页面,然后通过这个去写合适设备的逻辑,怎么来判断呢?当然是用window.navigator.userAgent.toLowerCase()啦

Copyright © 2020-2023 春藤技术,春藤建站 All Rights Reserved
备案号:豫ICP备20020705号 公网安备 51LA统计
0.197984s