【发布时间】:2009-07-09 02:40:59
【问题描述】:
我收到“对象不支持此属性或方法错误”,有人知道为什么吗?
我确实在 userId、fname、lname、oname、sam、hasAccess 中插入了值
function Employee(id, fname, lname, oname, sam, access) {
this.id = id;
this.fname = fname;
this.lname = lname;
this.oname = oname
this.sam = sam;
this.access = access;
}
var emp = new Employee(userId, fname, lname, oname, sam, hasAccess);
var jsonstuff = emp.toSource(); //Breaking here
虽然这个链接说它可能http://www.w3schools.com/jsref/jsref_toSource_date.asp
【问题讨论】:
标签: javascript