我想知道用最简单的方法替换所有警报('错误...')的最佳方式。用Kendo通知替换JavaScript警报
这样我就可以做
myKendoAlert( '我的信息',资讯);而且我不必为每个页面添加特定的html div或span持有人。
我目前正在做这样的事情:
var popupNotification = $("#popupNotification").kendoNotification({
position: {
pinned: false,
bottom: 100,
right: 100
},
templates: [{
type: "info",
template: "<div>Test : #= myMessage #</div>"
}],
autoHideAfter: 0,
stacking: "up"
}).data("kendoNotification");
但我需要把这个共同的JavaScript文件与功能我可以对所有页面使用。与,信息,错误,成功...(并成功清除)
看到了这一点? http://blogs.telerik.com/kendoui/posts/13-11-12/how-to-do-javascript-alerts-without-being-a-jerk – chris 2014-10-07 08:05:06
这是一个kendo窗口,不是通知,但我会我可以在那里使用一些东西,谢谢。 – 2014-10-07 21:44:15