<div
class
=
"layui-inline"
>
<div
class
=
"layui-input-inline"
>
<input type=
"text"
name=
"start_time"
class
=
"layui-input"
id=
"start_time"
placeholder=
"开始时间(修改时间)"
>
</div>
</div>
<div
class
=
"layui-inline"
>
<div
class
=
"layui-input-inline"
>
<input type=
"text"
name=
"end_time"
class
=
"layui-input"
id=
"end_time"
placeholder=
"结束时间(修改时间)"
>
</div>
</div>
js代码:
var
start = {
istime: true,
format:
'YYYY-MM-DD hh:mm:ss'
,
max:
'2099-06-16 23:59:59'
,
istoday: true,
choose:
function
(datas) {
end
.min = datas;
}
};
var
end
= {
istime: true,
format:
'YYYY-MM-DD hh:mm:ss'
,
max:
'2099-06-16 23:59:59'
,
istoday: true,
choose:
function
(datas) {
start.max = datas;
}
};
document.getElementById(
'start_time'
).onclick =
function
() {
start.elem = this;
laydate(start);
};
document.getElementById(
'end_time'
).onclick =
function
() {
end
.elem = this;
laydate(
end
);
};