function setDayTest(){
var length = require('electron').remote.getGlobal('mass').length;
number1 = location.search.substring(1);
number = Number(number1);
_day = document.getElementById("SelectDayIn");
_month = document.getElementById("SelectMonthIn");
_year = document.getElementById("SelectYear");
_dayGo = document.getElementById("SelectDayGo");
_monthGo = document.getElementById("SelectMonthGo");
_yearGo = document.getElementById("SelectYeag");
day = _day.options[_day.selectedIndex].value;
month = _month.options[_month.selectedIndex].value;
year = _year.options[_year.selectedIndex].value;
dayGo = _dayGo.options[_dayGo.selectedIndex].value;
monthGo = _monthGo.options[_monthGo.selectedIndex].value;
yearGo = _yearGo.options[_yearGo.selectedIndex].value;
if(!length){
require('electron').remote.getGlobal('mass')[0] = {
day: day,
month: month,
year: year,
dayGo: dayGo,
monthGo: monthGo,
yearGo: yearGo,
number: number,
}
} else{
require('electron').remote.getGlobal('mass')[length] = {
day: day,
month: month,
year: year,
dayGo: dayGo,
monthGo: monthGo,
yearGo: yearGo,
number: number,
}
}
var n = require('electron').remote.getGlobal('mass')[0].number;
alert(${n}
);
}