html中input中存在class=easyui-datebox对日期类增加change事件无效
可能是因为easyui-datebox组件是动态生成的,需要使用事件委托才能绑定事件。可以尝试使用以下代码:
$(document).on('change', '.easyui-datebox', function(){
// 处理事件
});
这样就可以在easyui-datebox组件上绑定change事件并处理。
原文地址: https://www.cveoy.top/t/topic/fkUh 著作权归作者所有。请勿转载和采集!