问题描述
我通过用户对 MathField 的操作动态使用 group_by
命令
示例
\mathquillMathField
但是 mathFieldSpan = document.getElementById('math-field');
fillInTheBlank = document.getElementById('fill-in-the-blank')
mathField = MQ.MathField(mathFieldSpan);
fillInTheBlank = MQ.StaticMath(document.getElementById('fill-in-the-blank'));
//add new input field with ```\mathquillMathField``` command to the mathField object.
function mathFieldBtn() {
mathField.write('\\mathquillMathField{}');
}
//display the received math input in static mathquill element - fillInTheBlank
function save() {
fillInTheBlank.latex(mathField.latex());
}
在运行 \mathquillMathField
方法后被移除
如何动态保存空字段 (mathField.latex()
) 并将其显示在 staticMath 对象中?
我的目标是在静态数学表达式中允许部分输入(例如让学生填写答案)
解决方法
暂无找到可以解决该程序问题的有效方法,小编努力寻找整理中!
如果你已经找到好的解决方法,欢迎将解决方案带上本链接一起发送给小编。
小编邮箱:dio#foxmail.com (将#修改为@)