明明这个就有了个. 为什么还会报错呢
代码如下:
carouselRotate: function(dir){
var _this_ = this;
var zIndexArr = [];
if(dir == "left"){
this.posterItems.each(function(){
var self = $(this),
prev = self.prev().get(0) ? self.prev() : _this_.posterLastItem,
width = prev.width(),
height = prev.height(),
zIndex = prev.css("z-index"),
opacity = prev.css("opacity"),
left = prev.css("left"),
top = prev.css("top"),
zIndexArr.push(zIndex); //这里报错了,牛牛帮解决一下
self.animate({
width:width,
height:height,
//zIndex:zIndex,
opacity:opacity,
left:left,
top:top
},