标签: html angularjs pdf markup jspdf
当我将角度生成的html传递给jspdf时,在这种情况下,像ng-hide这样的角度类不会影响生成的pdf。 因此生成的pdf包含ng-hide类下的元素。
请查看附上的JS bin, http://jsbin.com/lemewu/edit?html,js,output
我正在使用以下cdnjs https://cdnjs.cloudflare.com/ajax/libs/jspdf/1.2.61/jspdf.debug.js
答案 0 :(得分:0)
希望这会有所帮助。您正在使用ng-hide错误。使用ng-hide和ng-if之间存在差异。请仔细阅读。 working link