-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標籤的行末尾添加分號。它應該工作 - 你目前的,錯誤的輸出是什麼? –