為什么加入Carousel.init之后, 不能彈出窗口?
Carousel.init = function(posters){
var _this_ = this; ? ? ? // this 值得是 Carousel;
posters.each(function(){
new _this_($(this)); ? ? ?// this 指的是 poster
});
};
運行也米有錯誤。。。 求解答。
Carousel.init = function(posters){
var _this_ = this; ? ? ? // this 值得是 Carousel;
posters.each(function(){
new _this_($(this)); ? ? ?// this 指的是 poster
});
};
運行也米有錯誤。。。 求解答。
2015-09-02
舉報
2016-12-22
html里面,Carousel.init($(".J_Poster"));? class類名要加上".",我也犯了這個錯誤,找了好久 ? ? ? ? ? ? ? ? ? ? ? ? ? ? ??
2015-12-16
可能在你的html中的$(function(){ ? ?});里沒有調用吧