Javascript GIF不会在模式对话框中设置动画
} 这段代码使gif动画效果很好,因此问题不在于对话框可能是的重复,也可能是的重复Javascript GIF不会在模式对话框中设置动画,javascript,jquery,Javascript,Jquery,} 这段代码使gif动画效果很好,因此问题不在于对话框可能是的重复,也可能是的重复 $('.ajax').on('click', function(){ $.post($(this).attr('href'), function(data){ $('#modal').dialog('destroy'); $('#modal').html(data); $('#modal').dialog({ modal: true
$('.ajax').on('click', function(){
$.post($(this).attr('href'), function(data){
$('#modal').dialog('destroy');
$('#modal').html(data);
$('#modal').dialog({
modal: true,
width:'auto',
});
})
showModal();
return false;
});
function showModal() {
$('#modal').html('<img src="/images/loading.gif">');
$('#modal').dialog({
modal: true,
width:'auto',
height: 90
});
$(".ui-dialog-titlebar").hide();
}
$('.ajax').on('click', function(){
showModal();
return false;
});
function showModal() {
$('#modal').html('<img src="/images/loading.gif">');
$('#modal').dialog({
modal: true,
width:'auto',
height: 90
});
$(".ui-dialog-titlebar").hide();