http://www.ericmmartin.com/projects/simplemodal/
页面底部附近有两个示例,展示了如何进行打开或关闭动画。
我对 jquery 很陌生。如何同时声明 onOpen 和 onClose?(我一次只能让一个人工作。
jQuery(function ($) {
$('a.basic').click(function (e) {
e.preventDefault();
$('#basic-modal-content').modal(
{
onClose: function (dialog)
{
dialog.container.fadeOut('slow', function () {
});
}
}
);
});
});
感谢您的任何帮助,您可以提供。