企业🤖AI智能体构建引擎,智能编排和调试,一键部署,支持知识库和私有化部署方案 广告
获取阳历半年对象中的每一月。 1. .getMonths() > 返回一个阳历月对象的数组。 ### 示例代码 ``` const d = SolarHalfYear.fromDate(new Date()); const months = d.getMonths(); for(let i=0,j=months.length;i<j;i++){ console.log(months[i].toFullString()); } ```