这之间有什么区别:
define(["knockout"],
function (ko) {
return (function () {
var self = this;
self.Person = {
firstName: ko.observable(),
lastName: ko.observable(),
Age: ko.observable()
};
});
});
和
define(['knockout'],
function (ko) {
return function appViewModel() {
var self = this;
self.Person = {
firstName: ko.observable(),
lastName: ko.observable(),
Age: ko.observable()
};
}
});