【发布时间】:2014-02-12 08:05:43
【问题描述】:
我正在使用 Jquery noty 向用户显示通知,
我需要知道如何捕捉确认按钮点击事件 每个按钮的preventDefault。
noty({
text: message,
layout: position, "type": type,
buttons: [
{addClass: 'btn btn-primary', text: 'Ok', onClick: function ($noty) {
$noty.close();
}
},
{addClass: 'btn btn-danger', text: 'Cancel', onClick: function ($noty) {
$noty.close();
}
}
]
});
请指教,
【问题讨论】:
-
再贴一些示例代码,playa -- 或者你能把这只狗弄乱吗?
标签: javascript jquery jquery-ui noty