[英]Jquery : noty confirmation message
我正在使用JQuery noty插件 。 我需要确认的消息框, 确认消息框中的按钮以及如何终究来罚款,但按钮的Click事件不工作。 当我点击任何按钮 。 它给我HTTP Error 404.0 - Not Found.
The resource you are looking for has been removed, had its name changed, or is temporarily unavailable.
错误。 以下是我的代码。
noty({
text: 'Are you sure?',
type: 'confirm',
buttons: [
{
addClass: 'btn btn-primary', text: 'Ok', onClick: function ($noty) {
$noty.close();
noty({ text: 'You clicked "Ok" button', type: 'success' });
}
},
{
addClass: 'btn btn-danger', text: 'Cancel', onClick: function ($noty) {
$noty.close();
noty({ text: 'You clicked "Cancel" button', type: 'error' });
}
}
]
})
什么是错的。
检查脚本是否真的通过firebug / devtools加载,以及路径是否正确。 测试了你的代码,它对我有用。
声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.