Jqmath没有正确加载 [英] Jqmath not loading correctly

查看:179
本文介绍了Jqmath没有正确加载的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我在html页面上包含以下内容:

I have included the following on my html page:

<link rel="stylesheet" href="../css/jqmath-0.4.3.css"> 
<script src="../js/jquery-1.12.1.min.js"></script>
<script src="../js/jqmath-etc-0.4.3.min.js"></script>
<script>M.MathPlayer = false; M.trustHtml = true;</script>

但是当页面加载时,我在Javascript控制台中看到以下错误:

But when the page loads i see the following error in Javascript console:

jqmath-etc-0.4.3.min.js:3 Uncaught SyntaxError: Invalid regular 
expression: /(\d+\.?\d*|\.\d+)|[\\`]([A-Za-z]+|.)|[�-�][�-�]|
\S[Ì€-ͯ᷀-á·¿âƒ-âƒ¿ï¸ -︯]*/: Range out of order in character class

我在jquery-1.12.1.min.js中使用jqmath-etc-0.4.3.min.js。

我在这里缺少什么或者这可能是版本不兼容问题?
jqmath 0.4.3是唯一似乎可用的版本。

I am using jqmath-etc-0.4.3.min.js with jquery-1.12.1.min.js.
What am i missing here or could this be a version incompatibility issue?
jqmath 0.4.3 is the only version that seems to be available.

推荐答案

将您的第二个< script> 元素更改为:

Change your second <script> element to:

<script src="../js/jqmath-etc-0.4.3.min.js" charset="utf-8"></script>

正如alljamin建议的那样,你会在COPY-ME.html中看到这一点。关键是 charset =utf-8,如果你没有< meta charset =utf-8> ; 在你的html文件中(但你可能真的应该)。

As alljamin suggests, you'll see basically this in COPY-ME.html. The key is the charset="utf-8", required if you don't have a <meta charset="utf-8"> in your html file (but you probably really should).

这篇关于Jqmath没有正确加载的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆