【程序员博客0001】解决html5 下input type为date,设置value值无效的问题

html5下input有个新类型 date,用来设置日期的,效果如下:

当你为input 设置value值的时候,不生效,比如设置2019-12-04,效果如下:

但是可以用js的办法来搞定:

最终效果:

H2
H3
H4
3 columns
2 columns
1 column
Join the conversation now
Logo
Center