执行weex debug 可以打开chrome调试页面,但是这个页面报错造成调试代码打不开
chrome浏览器版本过低原因
document.querySelectorAll 返回的是 NodeList 对象,在低版本浏览器中是没有 forEach 方法的。你需要将 NodeList 转换成 Array 类型再使用 forEach。
document.querySelectorAll
NodeList
forEach
Array
[...document.querySelectorAll('*')].forEach(console.log)
由于您还没有绑定你的真实邮箱,如果其他用户或者作者回复了您的评论,将不能在第一时间通知您!
暂无简介
文章 0 评论 0
接受
发布评论
评论(2)
chrome浏览器版本过低原因
document.querySelectorAll
返回的是NodeList
对象,在低版本浏览器中是没有forEach
方法的。你需要将
NodeList
转换成Array
类型再使用forEach
。