为什么要var _this_ = this呢,不能直接在下面new Carousel吗?
var _this_ = this;
posters.each(function () {
new _this_($(this));
});为什么不能这样
posters.each(function () {
new Carousel($(this));
});谢谢回答的人
var _this_ = this;
posters.each(function () {
new _this_($(this));
});为什么不能这样
posters.each(function () {
new Carousel($(this));
});谢谢回答的人
2016-05-03
举报