web前端时间控件使用

官方参考地址:http://www.layui.com/laydate/

1.首先把下载的layDate文件夹放入项目目录下

2.在需要使用的页面引入/layDate/laydate.js

3.创建input并使用js初始化input,获取选择时间值时只需获取input的value即可

如图:


猜你喜欢

转载自blog.csdn.net/w_dongqiang/article/details/80155904