0

需要自动生成一个带有输入标签的 jqMath 公式。我从 jqMath 提供的示例中获取了一些代码。这是代码:

var $el = $('body').find('div#mydiv.main');
$el.html('');
$el.append(
   $("<p>\"If $$y = ax^\html'&lt;input type=\"text\" size=1>'+bx+c=0$$ with $a≠0$, then:$$x={-b±√{b^2-4ac}}/{2a}$$\"</p>")            
);

根据 jqMath 说明,我的 HTML 中确实有以下行

<script>M.MathPlayer = false; M.trustHtml = true;</script>

但是我得到的看起来像这样:

jqMath 图像输出

我不太确定我做错了什么。

4

0 回答 0