大家好,又见面了,我是你们的朋友全栈君。
1.引入时间控件js
2.代码
editoptions:{
dataInit:function(e){
$(e).datetimepicker({
autoclose:true,
format:’yyyy-mm-dd’,
minView:2,
language:’zh-CN’,
todayBtn: true
});
$(this).click(function(e){//选中时间后隐藏
$(e).parent().datepicker(‘hide’);
});
}
}
![jqgrid列表显示时间控件[通俗易懂]](https://javaforall.net/wp-content/uploads/2020/11/2020110817443450.jpg)
3.效果
![jqgrid列表显示时间控件[通俗易懂]](https://javaforall.net/wp-content/uploads/2020/11/2020110817443450.jpg)
发布者:全栈程序员-站长,转载请注明出处:https://javaforall.net/142498.html原文链接:https://javaforall.net
