12
Mẫu bên ngoài trong Dấu gạch dưới
Tôi sử dụng mẫu gạch dưới . Có thể đính kèm tệp bên ngoài làm mẫu không? Trong Backbone View, tôi có: textTemplate: _.template( $('#practice-text-template').html() ), initialize: function(){ this.words = new WordList; this.index = 0; this.render(); }, Trong html của tôi là: <script id="practice-text-template" type="text/template"> <h3>something code</h3> </script> Nó hoạt …