这是我的代码,AJAX 成功调用中的“滑动”事件。
success: function(data) {
$('#my_container').html(data);
// I am getting' #mycarousel' successfully in to #my_container
$('#mycarousel').bind('slid', function(e) {
console.log('hi');
}
// tried 'slid.bs.carousel' too, no change.
// btw, I can see my 'slid' function under event listeners for that element.
// when I paste the above binding code in console again it shows the element too.
});
我想在滑动事件上打印“hi”以控制台,该事件现在不起作用。
谢谢