これの違いは何ですか:
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()
};
}
});