_isMobile() { let flag = navigator.userAgent.match( /(phone|pad|pod|iPhone|iPod|ios|iPad|Android|Mobile|BlackBerry|IEMobile|MQQBrowser|JUC|Fennec|wOSBrowser|BrowserNG|WebOS|Symbian|Windows Phone)/i ); return flag; },
<div :class="[_isMobile() ? 'content-mobile' : 'content']"> </div>
标签:iPad,判断,是不是,flag,wOSBrowser,userAgent,手机,isMobile From: https://www.cnblogs.com/ylblogs/p/17302279.html