if(/(iPhone|iPad|iPod|iOS|Android)/i.test(navigator.userAgent)) { console.log('是'); } else { console.log('否'); }