javascript - IE8 Jquery 1.8.3 问题 : Syntax error line 2 chart 13575

标签 javascript jquery internet-explorer-8 ie8-compatibility-mode

我在使用 Jquery 1.8.3IE8 时遇到问题,我遇到的问题是目前我使用 IE8< 打开网页 我遇到下一个错误,无法提交表单:

Syntax error Jquery 1.8.3.js Sintax Error line: 2 char: 13575

我认为我的问题出在我的 javascript 上,但我不知道我错过了什么:

JavaScript Web Page

提前致谢! :D

编辑

该网页适用于 IE >= 10

最佳答案

出现问题是因为 IE8 和其他浏览器的 function_form 输出不同。在 IE 中,您会得到如下响应(错误 500,是 html):

<!DOCTYPE HTML PUBLIC "-//IETF//DTD HTML 2.0//EN">
<html><head>
<title>500 Internal Server Error</title>
</head><body>
<h1>Internal Server Error</h1>
<p>The server encountered an internal error or
misconfiguration and was unable to complete
your request.</p>
<p>Please contact the server administrator,
 root@localhost and inform them of the time the error occurred,
and anything you might have done that may have
caused the error.</p>
<p>More information about this error may be available
in the server error log.</p>
<hr>
<address>Apache/2.2.15 (CentOS) Server at carlyleonline.scalahed.com Port 80</address>
</body></html>

然后失败并显示: var datas = $.parseJSON(data.responseText);

另一方面,其他浏览器返回正确的 JSON:

{"errores": {"entidad": ["Este campo es obligatorio."], "fecha_nacimiento": ["Este campo es obligatorio."], "apellido_paterno": ["Este campo es obligatorio."], "carlyle_lic1": ["Seleccione al menos una licenciatura."], "celular": ["Proporcione un n\u00famero telef\u00f3nico."], "nombre": ["Este campo es obligatorio."], "email": ["Este campo es obligatorio."]}}

您能否向我们展示您的逻辑,该逻辑确定响应应该是 json 还是网络服务器错误?

关于javascript - IE8 Jquery 1.8.3 问题 : Syntax error line 2 chart 13575,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/17679371/

相关文章:

javascript - 使用 wp 媒体 uploader 上传文件路径未显示在字段中

javascript - 拒绝在 jQuery ajax 中延迟

javascript - 未选中特定复选框按钮时如何不显示 div 区域?

internet-explorer - IE 8 在 ssl 的 CNAME 重定向上抛出错误

javascript - 使用 :checked 配置时,输入(复选框)在 IE8 中不起作用

html - 在一个 CSS 类中组合不同的用户代理属性

javascript浏览器超时第二个计时器

JavaScript 和 FF 插件 : How to save images to local disk without re-downloading them

javascript - 滚动div中的绝对定位下拉菜单

javascript - 重新排列 DOM 元素