我看的是HTML,它是用JavaScript动态生成的。这是如何做到的
var el = $('body').find('div#my-div.main');
el.html('');
el.append($("<p>If $ax^2+bx+c=0$ with $a≠0$, then:$$x={-b±√{b^2-4ac}}/{2a}$$</p>"));但是,没有在页面上呈现公式。我看到了p标签中的确切文本。我确实检查了jqMath脚本和jqMath css的路径,它们都是正确的。
有谁知道为什么会发生这种事,以及如何解决?
发布于 2017-10-26 05:11:05
一旦你附加了这样的公式,调用parseMath函数-
var el = $('body').find('div#my-div.main');
el.html('');
el.append("<p>If $ax^2+bx+c=0$ with $a≠0$, then:$$x={-b±√{b^2-4ac}}/{2a}$$</p>");
jqMath.parseMath(document.body);https://stackoverflow.com/questions/46943601
复制相似问题