Javascript knockout binding nested objects not working
问题 I'm am relatively new to the use of the knockout javascript library. I'm having a problem getting an observable property which is an object of another object. Here is my code: function Customer(id) { var self = this; self.customer_id = ko.observable(id); self.custnum = -1; self.busname = ko.observable(""); self.address = ""; self.city = ""; self.state_id = ""; self.zipcode = ""; self.cnt_sal_id = ""; self.cnt_first_name = ""; self.cnt_last_name = ""; self.cnt_title = ""; //alert("customer: "