我正在构建 Monthpicker。如何在 datepicker 中进行 ajax 调用?
$(function () {
$('#datepicker').datepicker({
minDate: new Date('2013'),
maxDate: new Date(),
changeMonth: true,
changeYear: true,
dateFormat: "yy-mm",
onClose: function () {
$.ajax({
url: Routing.generate('ajax_table', $this)
})
}
});
});
如何传递选定的值onClose
?我想在 ajax 调用后渲染一个表格。我正在使用 fos_routing.js。