摘要:
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
八十易
阅读(645)
评论(0)
推荐(0)
摘要:
if(navigator.userAgent.match(/(iPhone|iPod|Android|ios)/i)){ } 阅读全文
posted @ 2019-10-17 12:28
八十易
阅读(257)
评论(0)
推荐(0)
摘要:
利用JSON.stringify 第二种用原声js 方法 Object.getOwnPropertyNames(Object) 返回的是数组 然后在判断数组length 就可以了 如对象里面的属性是数组可以用这个方法 转换成数组,然后读取下标 第三种 ES6 Object.keys() 与 Obje 阅读全文
posted @ 2019-10-17 11:37
八十易
阅读(482)
评论(0)
推荐(0)

浙公网安备 33010602011771号