-1
我使用Html2Pdf,它允许我生成PDF。 它工作正常,我想在我的jquery之前添加我的iframe,并设置attribut src。Attr in my iframe pdf
我有:
success: function (data) {
$("#loader99").hide();
$(".show_pdf_vcmd").append('<iframe id="fullFrame" src="temp/' + data.pdfurl_vcmd_ajax + '.pdf "width="50%" height="700px" class="pdf"></iframe>')
}
<div class="show_pdf_vcmd"></div>
我想有这样的结果:
success: function (data) {
$("#loader99").hide();
// Here put the attribut src (with my data) in .show_pdf_vcmd
}
<div class="show_pdf_vcmd"><iframe id="fullFrame" width="50%" height="700px" class="pdf"></iframe></div>
谢谢,我该怎么办呢?
请阅读[我如何问一个好问题?](http://stackoverflow.com/help/how-to-ask)我不明白你想完成什么。 – crush
在您添加iframe标签的行末尾添加分号。它应该工作 - 你目前的,错误的输出是什么? –