在js中,这段代码在除li元素(选项卡)之外的所有浏览器上都运行良好。
(function() {
[].slice.call(document.querySelectorAll('.tabs')).forEach(function(el) {
new CBPFWTabs(el);
});
})();
有什么帮助吗?
发布于 2015-11-26 10:39:50
IE8部分支持querySelectorAll(),http://caniuse.com/#feat=queryselector
https://stackoverflow.com/questions/33936450
复制相似问题