Find centralized, trusted content and collaborate around the technologies you use most.
Teams
Q&A for work
Connect and share knowledge within a single location that is structured and easy to search.
Backbone.jsを使用して、マウスクリックに基づいて新しいdivコンテナをロードする方法についての小さな例を誰かが与えることができますか?既存のhtmlコンテンツに新しいdivコンテナを追加したいと思います。
ビュークラスの場合:
events: { "click #myButton": "insertDiv" } insertDiv: function(event) { this.$el.append("<div>...</div>"); }