Knockout.js: Function parameter undefined
问题 I have a very simple example that is not working. jsfiddle: http://jsfiddle.net/ThomasDeutsch/8hzhp/3/ // My Model function Customer(id, name, lastname) { this.Id = ko.observable(id); this.Name = ko.observable(name); this.LastName = ko.observable(lastname); } // My ViewModel ViewModel = (function () { var getName = ko.computed(function (x) { return x.Name(); }); return { getName: getName(new Customer(1, "Thomas", "D")) }; })(); ko.applyBindings(ViewModel); problem: parameter (x) is undefined