会员
众包
新闻
博问
闪存
赞助商
HarmonyOS
Chat2DB
所有博客
当前博客
我的博客
我的园子
账号设置
会员中心
简洁模式
...
退出登录
注册
登录
Kite Fly
one by one step.
首页
新随笔
管理
2016年8月19日
移动设备横竖屏监听事件
摘要: window.addEventListener('orientationchange', function(event){ if ( window.orientation == 180 || window.orientation==0 ) { alert("竖屏"); //竖屏事件处理 } if(
阅读全文
posted @ 2016-08-19 17:24 CodeProducter
阅读(1048)
评论(0)
推荐(0)