判断是否是移动设备
Optional
User Agent 字符串,默认从navigator自动获取
isMobile() // trueisMobile('Mozilla/5.0 (Windows NT 10.0; Win64; x64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/58.0.3029.110 Safari/537.3') // false Copy
isMobile() // trueisMobile('Mozilla/5.0 (Windows NT 10.0; Win64; x64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/58.0.3029.110 Safari/537.3') // false
判断是否是移动设备