能詳解一下這個嗎?蟹蟹
;(function($){
var?Carousel=function(poster){
alert(poster);
};
Carousel.prototype={
};
Carousel.init=function(posters){
var?_this_?=?this;
posters.each(function(index,ele){
new?_this_(ele);
})
};
window["Carousel"]=Carousel;
})(jQuery);這些每一句話都是啥意思?
這裏到底是jq的語法還是js的語法?
非常感謝!
2016-11-08
你理解了嗎?我在Carousel.init()函數體沒有理解。求解答
2016-08-10
這些使用jquery 跟 js的面向對象來編寫的 ?建議不懂可以看一下李炎恢的 JavaScript的面向對象 章節 同時他的jquery 課程 ?非常值得看