html5下input有个新类型 date,用来设置日期的,效果如下:
当你为input 设置value值的时候,不生效,比如设置2019-12-04,效果如下:
但是可以用js的办法来搞定:
最终效果: