小鑫lay 2018-08-25 09:18 采纳率: 0%
浏览 3769
已结题

主界面上通过ajax返回的html字符串,然后怎么进行弹出新页面进行展示这个html

主界面上通过ajax返回的html字符串,然后怎么进行弹出新页面进行展示这个html,html字符串是动态生成的。 好像通过iframe可以解决但不知道怎么下手。

  • 写回答

3条回答 默认 最新

  • hx366 2018-08-25 09:44
    关注

    $.ajax({
    url: '…………',
    success: function(resp){
    var newWin = window.open('', '_blank');
    newWin.document.write(resp);
    }
    });

    评论

报告相同问题?