能詳解一下這個(gè)嗎?蟹蟹
;(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的語(yǔ)法還是js的語(yǔ)法?
非常感謝!
2016-11-08
你理解了嗎?我在Carousel.init()函數(shù)體沒(méi)有理解。求解答
2016-08-10
這些使用jquery 跟 js的面向?qū)ο髞?lái)編寫(xiě)的 ?建議不懂可以看一下李炎恢的 JavaScript的面向?qū)ο?章節(jié) 同時(shí)他的jquery 課程 ?非常值得看