且构网

分享程序员开发的那些事...
且构网 - 分享程序员编程开发的那些事

Knockout JS模型继承

更新时间:2023-10-07 11:44:22

我认为你可以像这样使用ko.utils.extend

I think you can use ko.utils.extend like this

ko.utils.extend(self, new ItemModel(item));

在StandardItemModel

inside the StandardItemModel

中,如下所示: http://jsfiddle.net/marceloandrader/bhEQ6/