load an image after clicking a button

前端 未结 3 1645
一向
一向 2020-12-20 09:34

I have a

3条回答
  •  攒了一身酷
    2020-12-20 10:20

    HTML

    
    

    jQuery

    $("button").click(function () {
        var imgUrl = $(this).data('rel');
        $("#area").html("description");
    });
    

提交回复
热议问题