摘要: ```javascript (function (doc, win) { var docEl = doc.documentElement, // 返回HTML文档的所有代码 resizeEvt = 'orientationchange' in window ? 'orientationchange' 阅读全文
posted @ 2019-04-04 09:52 杨钟华 阅读(151) 评论(0) 推荐(0) 编辑
摘要: var resizeEvt = 'orientationchange' in window ? 'orientationchange' : 'resize',这段是为了获取移动端屏幕是否翻转(手机重力感应等引起屏幕长宽变化之类的) 'orientationchange' in window 这个是判 阅读全文
posted @ 2019-04-04 08:49 杨钟华 阅读(749) 评论(0) 推荐(0) 编辑