screen.lockOrientation is not a function
问题 I would like to use the API screen in Js with chrome. if ( navigator.userAgent.match( /(android|iphone)/gi ) ) { if ( 'orientation' in screen ) { //console.log( '// API supported, yeah!' ); //console.log( 'new orientation is ', screen.orientation ); screen.lockOrientation( 'landscape' ); } else { console.log( '// API not supported ' ); } } else { //alert('none'); } my error js : caught TypeError: screen.lockOrientation is not a function / * other * / if ( navigator.userAgent.match( /(android