import{getLunar}from'chinese-lunar-calendar' //传入1991年2月1日 console.log(getLunar(1991,2,1)); /*输出 { lunarMonth: 12, //农历月份 lunarDate: 17, //农历日期 isLeap: false, //是否闰月 solarTerm: null, //节气,null代表没有 lunarYear: '庚午年', //农历年份,年以正月初一开始 zodiac...
npm install --save chinese-lunar-calendar chinese lunar calendar 农历 节气 linlifeng •1.0.1•6 years ago•15dependents•ISCpublished version1.0.1,6 years ago15dependentslicensed under $ISC 1,027 lunar Chinese lunar calendar converter ...
根据您的描述,您提到的是 chinese-lunar,但代码中使用的是 lunar-calendar。请确保包名称一致。 如果包名称应为 lunar-calendar,请尝试重新安装: npm uninstall chinese-lunar npm install lunar-calendar 然后在代码中正确导入模块: const LunarCalendar = require('lunar-calendar'); // 或者使用 ES6 模块语法 i...
<lunar-full-calendar:events="events":config="config"></lunar-full-calendar>......data(){return{events:[],config:{lunarCalendar:true//(Control whether the Chinese calendar shows true, unrealistic flase, default true.)},}},...window.lunar(date)// Date is the date... HTML API document ...
hjvue-lunar-full-calendar@1.3.2319227b5年前 89 次提交 提交取消 提示:由于 Git 不支持空文件夾,创建文件夹后会生成空的 .keep 文件 build update 5年前 components vue-lunar-full-calendar@1.2.8 5年前 config update docs 5年前 docs webpack3升级到webpack4 ...
lunar是一款无第三方依赖的公历(阳历)、农历(阴历、老黄历)、佛历和道历工具,支持星座、儒略日、干支、生肖、节气、节日、彭祖百忌、每日宜忌、吉神宜趋、凶煞宜忌、吉神(喜神/福神/财神/阳贵神/阴贵神)方位、胎神方位、冲煞、纳音、星宿、八字、五行、十神、建除十二值星、青龙名堂等十二神、黄道日及吉凶等。
在HBuilderX中安装chinese-lunar npm包的具体步骤如下: 打开HBuilderX开发工具: 首先,确保你已经安装了HBuilderX开发环境,并成功打开了它。 打开终端或命令行界面: 在HBuilderX中,你可以通过以下方式打开终端: 点击菜单栏中的“视图”选项。 选择“终端”或“命令行界面”选项来打开它。 切换到项目根目录: 在终...
{// 星期day:string,// 公历日期gregorian:{year:number,month:number,date:number,},// 农历日期lunar:{year:string,month:string,date:string,// 是否閏月leapMonth:boolean,},// 生肖zodiac:string,// 节气solarTerm:string,} ZIP压缩的JSON源文件 ...
linlifengx/chinese_lunar_calendarPublic NotificationsYou must be signed in to change notification settings Fork7 Star6 Actions All workflows Showing runs from all workflows 1 workflow run npm_and_yarn in for webpack - Update #876941062 Dependabot Updates#1:bydependabotbot ...
window.chineseLunar是一个全局函数,直接调用就可以,例如chineseLunar.solarToLunar(new Date()); 对于require,可以用如下方式使用: require(["chinese-lunar"],function(chineseLunar){ console.log(chineseLunar.solarToLunar(newDate()); //more...