https://git.oschina.net/tangrx/webui/tree/master/calendar 思路: 1. 通过年月算出当月有几天 2. 通过Js的date对象的 getDay方法算出第1号是星期几 3. 通过样式“selected” 判断哪些天是选中的(实现 getDays方法 ) 效果: null 转载于:https://my.oschina.net/tangruixin/blog/810400