帮主你好,上次提问下载的“基于Nutz的开源企业级开发框架”源码下载后,时间选择字段靠下时,弹出的选择框逐渐偏离时间字段。你的回复是http://bootstrap-datepicker.readthedocs.io/en/latest/,不过这里是英文,控件也是英文版,且没有控件下载链接。请问是不是bootstrap-datetimepicker.css的版本问题啊?去哪里下新版的?
3 回复
好像是提交代码影响的啊,去掉“ $('#addForm').ajaxForm({…………”一段代码就没问题了,但是没保存了……
$(document).ready(function () {
$('#addForm').ajaxForm({
dataType: 'json',
beforeSubmit: function (arr, form, options) {
form.find("button:submit").button("loading");
},
success: function (data, statusText, xhr, form) {
if (data.code == 0) {
Toast.success(data.msg);
form.resetForm();
} else {
Toast.error(data.msg);
}
form.find("button:submit").button("reset");
}
});
$('#htqdrq').datetimepicker({
language: 'zh-CN',
minView: 2,
format:'yyyy-mm-dd',
weekStart: 1,
todayBtn: 1,
autoclose: 1,
todayHighlight: 1,
startView: 2,
forceParse: 0,
showMeridian: 1
});
$('#p_c_d').datetimepicker({
language: 'zh-CN',
minView: 2,
format:'yyyy-mm-dd',
weekStart: 1,
todayBtn: 1,
autoclose: 1,
todayHighlight: 1,
startView: 2,
forceParse: 0,
showMeridian: 1
});
$('#htfhq').datetimepicker({
language: 'zh-CN',
minView: 2,
format:'yyyy-mm-dd',
weekStart: 1,
todayBtn: 1,
autoclose: 1,
todayHighlight: 1,
startView: 2,
forceParse: 0,
showMeridian: 1
});
});
</script>
添加回复
请先登陆