Carousel.init = function(posters){
var _this_ = this; // this 值得是 Carousel;
posters.each(function(){
new _this_($(this)); // this 指的是 poster
});
};
运行也米有错误。。。 求解答。
html里面,Carousel.init($(".J_Poster")); class类名要加上".",我也犯了这个错误,找了好久
可能在你的html中的$(function(){ });里没有调用吧