版权声明:转载请注明出处 https://blog.csdn.net/wengedexiaozao/article/details/83512108
laydate时间插件回调函数,laydate时间插件在选中时间之后,如果需要继续其他操作,那么就可以用laydate回调函数,
具体用法如下:
html代码,input框:
<input type="text" name="time" id="time" class="laydate-icon" onclick="laydate({istime: true, format: 'YYYY-MM-DD',choose:checkDate})">
js代码:
function checkDate() {
}
然后就可以在checkDate里面做一些操作了。