Problem: Internet Explorer 11, released in 2013, does not launch ECMAScript 2015 (for obvious reason).
, .
.
<script src="https://unpkg.com/babel-standalone@6/babel.min.js"></script>
<script type="text/babel" src="custom.js"></script>
: ES5
custom.js ES5 , - ES6/7/8 + :
var divs = $(".owl-news > .news-v2"),
array = [
{ length: 1, num: 4 },
{ length: 2, num: 3 },
{ length: 2, num: 3 },
{ length: 3, num: 2 }
],
i = 0;
array.forEach( function( item ) {
divs.slice(i, i+item.length).wrapAll( "<div id='news-"+item.num+"' class='col-md-"+item.num+"'></div>" );
i += item.length;
} );
: Script
, , .
, , ES6- ES5 , , /, Babel, Traceur, Closure.
" " , .
, , , .
: IE 11
, .
, .
, IE , , .
(3,2%) IE 11 - , "UC Browser" (8%), "Firefox" (6%), "Samsung Internet" (3,6%) "" ( 3,4%). (Statcounter 2017 ..)
, Samsung, , , , IE 11 .
IE , IE, Chrome.
Chrome , IE .
, , .