我正在使用JQuery noty插件。我需要确认消息框,无论确认消息框是否与按钮一起正常,但按钮单击事件不起作用。当我单击任何按钮时,。它给了我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' });
}
}
]
})这是怎么回事。
发布于 2013-11-30 09:23:20
检查脚本是否真的通过firebug/devtools加载,以及您的路径是否正确。测试了你的代码对我有用。
https://stackoverflow.com/questions/20298332
复制相似问题