gpt4 book ai didi

javascript - 检测 iPad 方向变化

转载 作者:IT王子 更新时间:2023-10-29 03:19:57 25 4
gpt4 key购买 nike

如何用检测或 用户何时将 iPad 从垂直位置转为水平位置或从水平位置转为垂直位置?

最佳答案

尝试

$(window).bind('orientationchange', function(event) {
alert('new orientation:' + event.orientation);
});

关于javascript - 检测 iPad 方向变化,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/6249722/

25 4 0
Copyright 2021 - 2024 cfsdn All Rights Reserved 蜀ICP备2022000587号
广告合作:1813099741@qq.com 6ren.com