バックボーンJSを使用していて、モデルからのデータを表示するのに問題があります。誰でもこれがどのように機能するかを知ることができますか? ティア
VIEW.JS -
render: function() {
///EDITED TO SIMPLIFY
var toModel = new tModel();//tModel is the name of the model
console.log(toModel.get('data'));//?? UNDEFINE
}
モデル.JS --
data:[
{ text: "Google", href: "http://google.com" },
{ text: "Facebook", href: "http://facebook.com" },
{ text: "Youtube", href: "http://youtube.com" }
],