javascript数据结构人员矩阵

时间:2013-03-13 06:21:01

标签: javascript date object calendar

我想存储每位员工每周计划在每个项目上工作的小时数。

我打算用这些数据填充表格,让用户编辑每周的小时数。

我为每个元素创建了对象:

//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;
}   

保存和访问日期附加时间的最佳方法是什么?是否有一个如何在某处做到这一点的例子?

0 个答案:

没有答案