#model#:search.js
define('search',function(){
var searchCriteria = function () {
var self = this;
self.DeviceSerialNumber = ko.observable('');
self.OrderNumber = ko.observable('');
self.PosTranNumber = ko.observable('');
self.EmailAddress = ko.observable('');
self.SuspendedbarCode = ko.observable('');
self.MobileNumber = ko.observable('');
};
return new searchCriteria();
});
我正在尝试通过以下代码在searchReturn.js中调用上述模型
define(function (require) {
var searchObj = require('search')
});
当我调试代码时,searchObj 是未定义的。任何人都可以指导我重新恋爱吗?
我应该为搜索模型配置任何东西吗?
谢谢,
湿婆雷迪