js 月份选择器(只选择到月) 需要如下js https://pan.baidu.com/s/1c1T9wY0 在html中添加如下代码 <input onclick="setmonth(this)" /> 效果图如下: MrNou