gpt4 book ai didi

javascript - 在 jspdf 中没有获得所需的输出

转载 作者:行者123 更新时间:2023-11-28 08:04:02 25 4
gpt4 key购买 nike

CODE:


//This html is store in a div of someclass
<a>"i"
"f you think the perfect yo clone has not been build then there is ...."

我得到这样的输出!! enter image description here

我的主要代码在这里

var question_main  = document.getElementsByClassName("someclass");
question = $(question_main).html();
var specialElementHandlers_main = {
'#test': function(element, renderer){
return true;
}
};

doc.fromHTML(question, 15, length, {
'width': 175,
'elementHandlers': specialElementHandlers_main

});

为什么我在 py pdf 中得到一些其他值(by)有什么问题?怎么解决呢?有什么办法可以消除“i”“f you..之间的差距。我认为他们造成了一些问题?

最佳答案

这是因为jspdf不支持UTF-8字符不要不要

关于javascript - 在 jspdf 中没有获得所需的输出,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/25001939/

25 4 0
Copyright 2021 - 2024 cfsdn All Rights Reserved 蜀ICP备2022000587号
广告合作:1813099741@qq.com 6ren.com