标签: node.js inheritance bookshelf.js
var ParentModel = bookshelf.Model.extend({ }); var ChildModel = ParentModel.extend({ }); new ChildModel().fetch().then(function(child){ console.log(child.get('parentAttribute')); //undefined });
如何从子对象获取继承的表属性?