单击工具栏 kendo 移动按钮时如何触发警报事件?
How can I trigger alert event when I click on a toolbar kendo Mobile button?
我试图在单击自定义工具栏按钮时调用函数。我想看看是否通过在其中实现 alert() 函数来调用该函数。它不会触发任何消息。知道如何通过单击警报旁边的按钮来检查功能是否被触发吗?
代码:
....
toolbar: [
{template: '<a class="k-button" onclick="removeLicense()">Ukloni licencu</a>'}
],
...
function removeLicense() {
// window.kendoAlert("hello");
alert("hello");
}
我已经准备了一个 Dojo example,它会在单击工具栏按钮时触发您的警报。
希望对您有所帮助。
我试图在单击自定义工具栏按钮时调用函数。我想看看是否通过在其中实现 alert() 函数来调用该函数。它不会触发任何消息。知道如何通过单击警报旁边的按钮来检查功能是否被触发吗?
代码:
....
toolbar: [
{template: '<a class="k-button" onclick="removeLicense()">Ukloni licencu</a>'}
],
...
function removeLicense() {
// window.kendoAlert("hello");
alert("hello");
}
我已经准备了一个 Dojo example,它会在单击工具栏按钮时触发您的警报。
希望对您有所帮助。