通过Jquery AJAX下载图像

时间:2013-11-11 04:20:22

标签: jquery ajax image

如何通过ajax加载图像并将其显示在div中?

$("<div />").load("#{load_image_path}/"+$(this).attr("data-id"), function(data) { //IN WHICH FORMAT IT MUST BE GIVEN?
    $(".la-anim-10").removeClass("la-animate");
    $(".fullscreen").css("background", "url('#{load_image_path(13)}')"); //HOW IT MUST BE WRITTEN HERE?
    $(".fullscreen").css("display", "block");
  });

0 个答案:

没有答案