各スタッフが各プロジェクトで毎週何時間働く予定かを保存したいと考えています。
このデータをテーブルに入力し、ユーザーが各週の時間を編集できるようにします。
各要素のオブジェクトを作成しました:
//project
function project(name, number, staff)
{
this.name = name;
this.number = number;
this.staff = staff;
}
//staff
function staff(name, date)
{
this.name = name;
this.date = date;
this.addDate = function(){};
this.removeDate = function(){};
}
//date
function date(year, month, week, hours)
{
this.year = year;
this.month = month;
this.week = weed;
this.hours = hours;
}
日付に添付された時間を保存してアクセスする最良の方法は何ですか? どこかでこれを行う方法の例はありますか?