📜  在标签 javascript 代码示例中加载 base64 图像

📅  最后修改于: 2022-03-11 15:01:46.896000             🧑  作者: Mango

代码示例1
success: function (data) {
        var image = new Image();
        image.src = "data:image/jpg;base64," + data.d;

        var w = window.open("");
        w.document.write(image.outerHTML);
          w.document.close();
    }