摘要: if(navigator.userAgent.match(/(iPhone|iPod|Android|ios)/i)){ } 阅读全文
posted @ 2019-10-17 12:28 八十易 阅读(243) 评论(0) 推荐(0) 编辑
摘要: var homeFootBar = document.querySelector("底部foot")var shortcutVal = document.querySelector("input")shortcutVal.addEventListener("focus", function (e) { if(navigator.userAgent.match(/(iPhone|iPod|A... 阅读全文
posted @ 2019-10-17 12:28 八十易 阅读(622) 评论(0) 推荐(0) 编辑
摘要: 利用JSON.stringify 第二种用原声js 方法 Object.getOwnPropertyNames(Object) 返回的是数组 然后在判断数组length 就可以了 如对象里面的属性是数组可以用这个方法 转换成数组,然后读取下标 第三种 ES6 Object.keys() 与 Obje 阅读全文
posted @ 2019-10-17 11:37 八十易 阅读(474) 评论(0) 推荐(0) 编辑