我尝试使用 reactjs 放入<script src="https://www.wiris.net/demo/plugins/app/WIRISplugins.js?viewer=image"></script>
我<head>
的 index.html ,但是,由于某种原因,这对我不起作用。
客户端/公共/index.html
<!DOCTYPE html>
<html lang="pt-br">
<head>
<meta charset="utf-8">
<meta name="viewport" content="width=device-width, initial-scale=1, shrink-to-fit=no">
<title>Portal</title>
<!-- WIRISplugin -->
<script src="https://www.wiris.net/demo/plugins/app/WIRISplugins.js?viewer=image"></script>
</head>
<body>
<div id="root"></div>
</body>
</html>
当我运行该应用程序时,数学方程式仍未显示,并且我在控制台上收到 404 错误,因为脚本无法访问 Wiris URL 并获取插件。
当前结果:
a3xy=∞∅π 21,4 mol ⇄ aΔN
有人可以帮助我吗?我已经阅读了 Wiris 网站 ( https://docs.wiris.com/en/mathtype/mathtype_web/integrations/mathml-mode ) 上的文档,但我无法确定为什么这不起作用。