在 vue2

问题描述

我在 vue2 中使用 mathjax@3.1.2。我按功能页面中动态加载 mml-svg.js。

const script = document.createElement('script')
script.src = CDN_MathJax
script.id = CDN_MathJax
document.body.appendChild(script)

并配置 mathjax

window.MathJax = {
        svg: { fontCache: "global",scale: 2 },};

然后我在渲染页面时收到错误 window.MathJax.mathml2svg() is not a function

对象 window.MathJaxsvg: { fontCache: "global",scale: 2 }

但是没有配置也可以,对象window.MathJaxdefalt cofnig

那么如何在vue中正确配置Mathjax@3.1.2?

解决方法

暂无找到可以解决该程序问题的有效方法,小编努力寻找整理中!

如果你已经找到好的解决方法,欢迎将解决方案带上本链接一起发送给小编。

小编邮箱:dio#foxmail.com (将#修改为@)