问题
Im newbie in js, this code works good on all browser except li elements (tabs).
(function() {
[].slice.call(document.querySelectorAll('.tabs')).forEach(function(el) {
new CBPFWTabs(el);
});
})();
Any help?
回答1:
IE8 partially supports querySelectorAll()
, http://caniuse.com/#feat=queryselector
read this too :querySelectorAll alternative for IE
来源:https://stackoverflow.com/questions/33936450/ie8-returns-object-expected-slice-call