Bootstrap

js 判断是否手机端

 let info = navigator.userAgent;
 let isPhone = /mobile/i.test(info);
 console.log(isPhone);
 // 判断是否是手机端
// 通过屏幕宽度判断
window.screen.width

;