1.数组 最后一个逗号 不要有 否则会报错
2.overflow: hidden;
white-space: nowrap;
-o-text-overflow: ellipsis; /* for Opera */
text-overflow: ellipsis; /* for IE */
3.过渡
-webkit-transition: all .2s linear 0s; */
-moz-transition: all .2s linear 0s;
-o-transition: all .2s linear 0s;
/* transition: all .2s linear 0s
4..forEach兼容
if (typeof Array.prototype.forEach != 'function') {//兼容ie8
Array.prototype.forEach = function(callback){
for (var i = 0; i < this.length; i++){
callback.apply(this, [this[i], i, this]);
}
};
}