1.下载
//npm
npm install current-device
//yarn
yarn add current-device
2.main.js引入
import device from 'current-device'
3.使用
直接调用方法即可
if (device.mobile()) {
console
1.下载
//npm
npm install current-device
//yarn
yarn add current-device
2.main.js引入
import device from 'current-device'
3.使用
直接调用方法即可
if (device.mobile()) {
console