【发布时间】:2015-08-14 16:55:54
【问题描述】:
我在 qQuery 函数下面有这个,它将几个对象设置为空。
$.fn.myfunction = function() {
var newAppointmentDetails = {
AppointmentStatusTypeId: null,
AppointmentStatusId: null,
AppointmentType: null,
CallDate: null,
}; }`
我从我的视图文件(单独的文件)中调用这个函数“myfunction”,我得到对象未定义的错误。
fn.myfunction();
如何调用这个函数?
【问题讨论】: