2015-01-07 33 views

回答

0

你已經在你的代碼犯了兩個錯誤:

  • 當在單擊列表中的條目獲取綁定上下文,你必須指定命名的型號名稱「數據」:
    var oBindingContext = evt.getSource().getBindingContext("data"); // if using named models, specify which model you want to use

  • 另外,將綁定上下文設置爲詳細視圖時,還必須將型號名稱設置爲'數據':
    page2.setBindingContext(oBindingContext, "data"); // also, name the context model to 'data'

查看更新的JSBin在這裏:http://jsbin.com/fehoqu/1/edit?html,output

+0

我非常感謝您的快速響應。成功了! –