如何在twitter bootstrap中继承Carousel对象

时间:2015-08-29 17:39:22

标签: javascript jquery twitter-bootstrap

我想为Bootstrap的Carousel原型添加一个新功能。我怎么能这样做?

目前我正在尝试下面

$('#myCarousel').carousel();

Carousel.prototype.myFunction = function () {
    // my logic goes here
};

但这不起作用。

0 个答案:

没有答案