今天突然不起作用了。
public Person(short day, short month, short year)
{
this.day = day;
this.month = month;
this.year = year;
this.birthday = day+"."+month+"."+year;
}
public void setBirthday(short day, short month, short year)
{
this.day = day;
this.month = month;
this.year = year;
this.birthday = day+"."+month+"."+year;
}
public void checkBirthday()
{
if(day > 30 && (month == 4 || month == 6 || month == 9 || month == 11))
{
System.out.println("The entered birthday is invalid. Please re-enter your birthday.");
setBirthday(day, month, year);
}
}
使用babel 7.0.0,就在昨天,效果很好。
转换得很好
这是我项目的一部分
(function (exports, require, module, __filename, __dirname) { import mongoose from 'mongoose';
如果执行dist (converted to ES8)
-models
-main.js
model
main.js
,则node ./dist/main.js
应该使用dist文件夹中的models文件夹。但是,它使用的是dist文件夹之外的models文件夹。
我真的很想知道问题出在哪里。