如果我有类似的嵌套页面
<div data-bind="page: {id: 'top', withOnShow: topVM}">
<div data-bind="page: {id: 'sub1', withOnShow: sub1VM}">
<span data-bind="text:sub1Property"></span>
</div>
</div>
topVM = function(callback) { callback({topProperty: XXX}); }
sub1VM = function(callback) {
// how can I access topVM here?
callback({sub1Property: XXX});
}
如何从内页的视图模型访问外页的视图模型?