Warning: file_get_contents(/data/phpspider/zhask/data//catemap/4/webpack/2.json): failed to open stream: No such file or directory in /data/phpspider/zhask/libs/function.php on line 167

Warning: Invalid argument supplied for foreach() in /data/phpspider/zhask/libs/tag.function.php on line 1116

Notice: Undefined index: in /data/phpspider/zhask/libs/function.php on line 180

Warning: array_chunk() expects parameter 1 to be array, null given in /data/phpspider/zhask/libs/function.php on line 181
滑动jquery问题 功能显示目的地(国家/地区id、机场id){ $.ajax({ 类型:“POST”, url:“function.php”, 数据:“国家/地区id=“+国家/地区id+”&机场id=“+机场id+”&行动=目的地”, beforeSend:function(){$(“#加载程序_目的地”).html(“”);}, 成功:功能(msg){ //$(“.loader_destination”).empty(); //$(“#目的地分区”).html(msg); //$(“#destination_div”).slideDown(“slow”,function(){$(“#destination_div”).html(msg);}) //$(“#destination_div”).html(msg,function(){$(“#destination_div”).slideDown(“slow”)}); $('destination_div').slideDown(500,function(){$('destination_div').html(msg);}); } }); }_Jquery - Fatal编程技术网

滑动jquery问题 功能显示目的地(国家/地区id、机场id){ $.ajax({ 类型:“POST”, url:“function.php”, 数据:“国家/地区id=“+国家/地区id+”&机场id=“+机场id+”&行动=目的地”, beforeSend:function(){$(“#加载程序_目的地”).html(“”);}, 成功:功能(msg){ //$(“.loader_destination”).empty(); //$(“#目的地分区”).html(msg); //$(“#destination_div”).slideDown(“slow”,function(){$(“#destination_div”).html(msg);}) //$(“#destination_div”).html(msg,function(){$(“#destination_div”).slideDown(“slow”)}); $('destination_div').slideDown(500,function(){$('destination_div').html(msg);}); } }); }

滑动jquery问题 功能显示目的地(国家/地区id、机场id){ $.ajax({ 类型:“POST”, url:“function.php”, 数据:“国家/地区id=“+国家/地区id+”&机场id=“+机场id+”&行动=目的地”, beforeSend:function(){$(“#加载程序_目的地”).html(“”);}, 成功:功能(msg){ //$(“.loader_destination”).empty(); //$(“#目的地分区”).html(msg); //$(“#destination_div”).slideDown(“slow”,function(){$(“#destination_div”).html(msg);}) //$(“#destination_div”).html(msg,function(){$(“#destination_div”).slideDown(“slow”)}); $('destination_div').slideDown(500,function(){$('destination_div').html(msg);}); } }); },jquery,Jquery,向下滑动此效果不起作用, 输出只是显示,我没有发现对显示输出有任何影响,您想实现什么 在我看来好像 function show_destination(country_id,airport_id){ $.ajax({ type: "POST", url: "function.php", data: "country_id="+country_id+"&airport_id="+airport_id+"&action=destination"

向下滑动此效果不起作用,
输出只是显示,我没有发现对显示输出有任何影响,

您想实现什么

在我看来好像

function show_destination(country_id,airport_id){ $.ajax({ type: "POST", url: "function.php", data: "country_id="+country_id+"&airport_id="+airport_id+"&action=destination", beforeSend: function() { $("#loader_destination").html(''); }, success: function(msg){ // $(".loader_destination").empty(); //$("#destination_div").html(msg); //$("#destination_div").slideDown("slow",function(){$("#destination_div").html(msg);}) //$("#destination_div").html(msg,function(){$("#destination_div").slideDown("slow");}); $('#destination_div').slideDown(500, function() { $('#destination_div').html(msg);}); } }); } …将向下滑动DIV,然后设置HTML。如果DIV为空,则不会看到动画

那么:

$('#destination_div').slideDown(500, function() { $('#destination_div').html(msg);});
我正在缓存$destination_div以提高性能,不过您可以使用链接:

var $destination_div =  $('#destination_div');
$destination_div.html(msg);
$destination_div.slideDown(500);
您甚至可能还想扩展beforesend方法:

$('#destination_div').html(msg).slideDown(500);

你想达到什么目标

在我看来好像

function show_destination(country_id,airport_id){ $.ajax({ type: "POST", url: "function.php", data: "country_id="+country_id+"&airport_id="+airport_id+"&action=destination", beforeSend: function() { $("#loader_destination").html(''); }, success: function(msg){ // $(".loader_destination").empty(); //$("#destination_div").html(msg); //$("#destination_div").slideDown("slow",function(){$("#destination_div").html(msg);}) //$("#destination_div").html(msg,function(){$("#destination_div").slideDown("slow");}); $('#destination_div').slideDown(500, function() { $('#destination_div').html(msg);}); } }); } …将向下滑动DIV,然后设置HTML。如果DIV为空,则不会看到动画

那么:

$('#destination_div').slideDown(500, function() { $('#destination_div').html(msg);});
我正在缓存$destination_div以提高性能,不过您可以使用链接:

var $destination_div =  $('#destination_div');
$destination_div.html(msg);
$destination_div.slideDown(500);
您甚至可能还想扩展beforesend方法:

$('#destination_div').html(msg).slideDown(500);

在滑块向下生效之前,您不会设置HTML:

beforeSend: function() { 
    $("#loader_destination").html(''); 
    $('#destination_div').hide(); 
}
您需要将其打开:

$('#destination_div').slideDown(500, function() { 
  $('#destination_div').html(msg);
});

在滑块向下生效之前,您不会设置HTML:

beforeSend: function() { 
    $("#loader_destination").html(''); 
    $('#destination_div').hide(); 
}
您需要将其打开:

$('#destination_div').slideDown(500, function() { 
  $('#destination_div').html(msg);
});

看看你的代码,我会说元素在500毫秒内是空的,它应该是滑动的。 尝试:


看看你的代码,我会说元素在500毫秒内是空的,它应该是滑动的。 尝试:


你救了我的命,你的片段解决了我的问题,我现在学到了…我下次做得更好,谢谢大家…你救了我的命,你的片段解决了我的问题,我现在学到了…我下次做得更好,谢谢大家。。。