underscore.jsを使用したオブジェクトを反復します
-
29-10-2019 - |
質問
したがって、私はBackBone.jsを学習しており、現在、以下の例でいくつかのモデルを繰り返しています。最初のスニペットは、他のScore.jsベースのUnderscoreが機能しないときに機能します。なんで?
// 1: Working
this.collection.each(function(model){ console.log(model.get("description")); });
// 2: Not working
_.each(this.collection, function(model){ console.log(model.get("description")); });
自分で見ることができないので、私は何を間違っていますか?
正しい解決策はありません
所属していません StackOverflow