需要如下js
https://pan.baidu.com/s/1c1T9wY0
在html中添加如下代码
<input onclick="setmonth(this)" />
效果图如下:
相关文章: