我正在为 JQuery ui timepicker 插件的 onchange 苦苦挣扎:http: //trentrichardson.com/examples/timepicker/
我正在使用以下代码。
$(document).ready(function ()
{
$('#CutoffTime').timepicker({ stepMinute: 15 });
});
// 试图捕获更改事件
$(function ()
{
$('#CutoffTime').change(function ()
{
// do something heree
});
});
// 我的 HTML
<input type="text" id="CutoffTime" />
由于某种原因,它似乎陷入了无限循环?有没有更好的方法来实现我所需要的?