Find centralized, trusted content and collaborate around the technologies you use most.
Teams
Q&A for work
Connect and share knowledge within a single location that is structured and easy to search.
我显示了一个 3 个月的日期选择器,在右上角有下一个按钮可以提前一个月。我想给这个下一个按钮添加一个事件,我想用这个按钮触发另一个功能,但下个月也必须出现。
您可以使用以下委托为此按钮创建单击处理程序.on():
.on()
$(document).on('click','.ui-datepicker-next',function(){ alert('next btn clicked'); });