我想知道是否有某种跨设备的方法来侦听使用jquery / javascript的移动设备上的定向模式更改?
该问题说明了如何使用iPhone和Android上的纯JavaScript来执行此操作,并使用JavaScript 在浏览器中检测Android手机的旋转
JQuerymobile有orientationchange
事件,查看他们的网站获取更多信息和演示的。
The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.