Back

View source code

<div id="example">
    <button data-bind="events:{ click: listener, dblclick: listener, mouseover: listener, mouseout: listener }">Button</button>
</div>

View model source code

var viewModel = kendo.observable({
    listener: function(e) {
        kendoConsole.log("Event: " + e.type);
    }
});

kendo.bind($("#example"), viewModel);
aspxhtml文档合集 | AspxHtml学习分享网 | ConnectionStrings | 机发库