在元素添加class样式隐藏display:none; 使用console.log(xx.style.display);//空值 转载于:https://www.cnblogs.com/davidcdh/p/6902338.html