if(screen.width<768 ){ alert("这是手机"); if(document.body.clientWidth>window.screen.width){ aler
if(screen.width<768 ){ alert("这是手机"); if(document.body.clientWidth>window.screen.width){ alert("屏幕是横着放的"); }else{ alert("屏幕是竖着放的"); }