in ios, the horizontal screen and then back to the vertical style are all deformed, I can add an alert, how can it be feasible without adding alert? Or directly prohibit horizontal screen
normal page:
alert
console.log()
window.onorientationchange=function(){
if(window.orientation==90||window.orientation==-90){
alert("");
}else{
alert("");
}
}
Question1: why can I just write alert? Why not write console?
question 2: is it possible to disable the horizontal screen directly?