区分用户使用PC端还是非PC端(移动端等)
computed: { /** * 判断是够是pc设备 */ IsPC() { const userAgentInfo = navigator.userAgent; const Agents = ["Android", "iPhone", "SymbianOS", "Windows Phone", "iPod"]; let flag = true; Agents.forEach(item => { if..
原创
2020-09-26 17:19:39 ·
269 阅读 ·
0 评论