主界面上通过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);
}
});解决 无用评论 打赏 举报