xiaolizi007
11/22/2016 - 6:46 AM

From http://wiki.jikexueyuan.com/project/kendo-ui-development-tutorial/kendo-mvvm-data-binding-the-click.html 如果需要终止事件向上传递(event bubbling),可

From http://wiki.jikexueyuan.com/project/kendo-ui-development-tutorial/kendo-mvvm-data-binding-the-click.html 如果需要终止事件向上传递(event bubbling),可以调用 stopPropagation 方法


<span data-bind="click: click">Click</span>
<script>
var viewModel = kendo.observable({
    click: function(e) {
        e.stopPropagation();
    }
});

kendo.bind($("span"), viewModel);
</script>