我想在特定事件后改变模态行为.
$('.myModal').modal('show'); // default behavior - user can close modal on ESC $(button).click(function(){ $('.myModal').modal({keyboard:false}); // override // prevous line code does not work as i expect,// user can close modal with ESC $('.myModal').data('modal').option.keyboard = false; // even this code doesn't work });
任何帮助将不胜感激