我正在尝试将一个数学formula editor集成到一个网站中。我希望用户在这个编辑器中写出一个等式,并让编辑器导出包含MathML格式的源代码。
当我尝试演示并更改方程式时,源代码没有更新到新的方程式。
这需要后台工作吗?
请不要重定向到其他公式编辑器!
发布于 2015-05-28 23:17:15
对我来说是这样的。
q²-1/q-1 然后我使用他们的javascript链接
javascript:alert(org.mathdox.formulaeditor.FormulaEditor.getEditorByTextArea("formula1").getMathML())结果就是
mlns="http://www.w3.org/1998/Math/MathML"><mfrac><mrow><msup><mi>q</mi><mn>2</mn></msup><mo>-</mo><mn>1</mn></mrow><mrow><mi>q</mi><mo>-</mo><mn>1</mn></mrow></mfrac></math>当我将公式更改为
q²-1/q-2我得到了
<math xmlns="http://www.w3.org/1998/Math/MathML"><mfrac><mrow><msup><mi>q</mi><mn>2</mn></msup><mo>-</mo><mn>1</mn></mrow><mrow><mi>q</mi><mo>-</mo><mn>2</mn></mrow></mfrac></math>它肯定会改变值。你应该提供一个例子或类似的东西,所以所谓的“指南”。你可以在这里看看:https://stackoverflow.com/tour
https://stackoverflow.com/questions/30510247
复制相似问题