How to use HTML5 drag and drop in combination with KnockoutJS?
问题 I can't seem to bind to html5 drag and drop events. Here's an example of from a template: <script id="tabsTemplate" type="text/html"> <div class="dropzone" for="tab" data-bind="event:{dragover: function(event){event.preventDefault();}, dragenter: function(event){event.target.addClass('dragover'); event.preventDefault();}, dragleave: function(event){event.target.removeClass('dragover'); event.preventDefault();}} drop: function(event){console.log('blahblah!')}"></div> <h1 class="tab" draggable=