简体   繁体   English

脚本未在IE7上加载

[英]Script doesn't load on IE7

I got a problem with a script, when I try to load the page in IE7 当我尝试在IE7中加载页面时,脚本出现问题

Link to the website 链接到网站

Expected identifier, string or number zoommap.js, line 126 character 6 预期的标识符,字符串或数字zoommap.js,第126行,字符6

This is what is in that line: 这是该行中的内容:

    }).appendTo(map).click(function(){

Object doesn't support this property or method setupMap.js, line 6 character 1 对象不支持此属性或方法setupMap.js,第6行字符1

This is what is in that line: 这是该行中的内容:

        $('#map').zoommap({

I hope that you can help me, I'll really appreciate it. 希望您能对我有所帮助,我将不胜感激。 If you need any other info please tell me. 如果您需要任何其他信息,请告诉我。

The first means there is an extra trailing comma in the line above it. 第一种表示在其上方的行中还有一个多余的逗号。

The second is because the first failure causes the zoommap plugin to not initialize. 第二个原因是因为第一次失败导致zoommap插件未初始化。

Remember that JavaScript does not support "final commas" in object definitions. 请记住,JavaScript在对象定义中不支持“最终逗号”。 So I cannot write: 所以我不能写:

var obj = {'a': 1, 'b': 2,}

but have to write: 但必须写:

var obj = {'a': 1, 'b': 2}

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM