## 本年第几半年 获取阳历半年在一年中的序号,123456月为1半年。 1. .getIndex() > 返回序号:1、2 ### 示例代码 var d = SolarHalfYear.fromDate(new Date()); console.log(d.getIndex()); ### 输出