飞天意大利面神兽
2016-08-04 15:33
;(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的語法?
非常感謝!
你理解了吗?我在Carousel.init()函数体没有理解。求解答
这些使用jquery 跟 js的面向对象来编写的 建议不懂可以看一下李炎恢的 JavaScript的面向对象 章节 同时他的jquery 课程 非常值得看
JS实现“旋转木马”幻灯片效果
66437 学习 · 155 问题
相似问题