手機端log : https://www.npmjs.com/package/eruda
function orient() {
if (window.orientation == 0 || window.orientation == 180) {
orientation = "portrait";
return false;
} else if (window.orientation == 90 || window.orientation == -90) {
orientation = "landscape";
return false;
}
}
window.addEventListener('orientationchange',function(){
console.log(222222)
return orient();
})
orient()