v1.2.29 每日宜忌支持2种流派。
This commit is contained in:
8
lunar.js
8
lunar.js
@@ -1174,11 +1174,11 @@
|
|||||||
}
|
}
|
||||||
return LunarUtil.POSITION_TAI_MONTH[m-1];
|
return LunarUtil.POSITION_TAI_MONTH[m-1];
|
||||||
},
|
},
|
||||||
getDayYi:function(){
|
getDayYi:function(sect){
|
||||||
return LunarUtil.getDayYi(this.getMonthInGanZhiExact(),this.getDayInGanZhi());
|
return LunarUtil.getDayYi(2 == sect ? this.getMonthInGanZhiExact() : this.getMonthInGanZhi(), this.getDayInGanZhi());
|
||||||
},
|
},
|
||||||
getDayJi:function(){
|
getDayJi:function(sect){
|
||||||
return LunarUtil.getDayJi(this.getMonthInGanZhiExact(),this.getDayInGanZhi());
|
return LunarUtil.getDayJi(2 == sect ? this.getMonthInGanZhiExact() : this.getMonthInGanZhi(), this.getDayInGanZhi());
|
||||||
},
|
},
|
||||||
getDayJiShen:function(){
|
getDayJiShen:function(){
|
||||||
return LunarUtil.getDayJiShen(this.getMonth(),this.getDayInGanZhi());
|
return LunarUtil.getDayJiShen(this.getMonth(),this.getDayInGanZhi());
|
||||||
|
|||||||
@@ -1,6 +1,6 @@
|
|||||||
{
|
{
|
||||||
"name": "lunar-javascript",
|
"name": "lunar-javascript",
|
||||||
"version": "1.2.28",
|
"version": "1.2.29",
|
||||||
"description": "lunar is a calendar library for Solar and Chinese Lunar.",
|
"description": "lunar is a calendar library for Solar and Chinese Lunar.",
|
||||||
"main": "index.js",
|
"main": "index.js",
|
||||||
"scripts": {
|
"scripts": {
|
||||||
|
|||||||
Reference in New Issue
Block a user