问题描述
我正在尝试调试此错误,但是它给我的信息不足以解决该错误?还是做??
I am trying to debug this error but it does not give me enough info ti figure it out? or does it???
http://c5beta.dealercontrol.net/库存/1-2l1305517101/Mercedes-Benz_E-Class_E350_White_2010#request-info
网页错误详细信息
用户代理:Mozilla/4.0(兼容; MSIE 8.0; Windows NT 6.0; Trident/4.0; GTB6; SLCC1; .NET CLR 2.0.50727; Media Center PC 5.0; .NET CLR 3.5.30729; .NET CLR 3.0.30729; .NET4.0C)时间戳记:2011年6月3日,星期五,UTC时间
User Agent: Mozilla/4.0 (compatible; MSIE 8.0; Windows NT 6.0; Trident/4.0; GTB6; SLCC1; .NET CLR 2.0.50727; Media Center PC 5.0; .NET CLR 3.5.30729; .NET CLR 3.0.30729; .NET4.0C)Timestamp: Fri, 3 Jun 2011 20:53:11 UTC
消息:预期对象行数:1字符:1代码:0URI: http://c5beta.dealercontrol.net/inventory/1-2l1305517101/Mercedes-Benz_E-Class_E350_White_2010
Message: Object expectedLine: 1Char: 1Code: 0URI: http://c5beta.dealercontrol.net/inventory/1-2l1305517101/Mercedes-Benz_E-Class_E350_White_2010
消息:预期对象行数:1字符:1代码:0URI:
Message: Object expectedLine: 1Char: 1Code: 0URI:
消息:预期对象行数:1字符:1代码:0URI:
Message: Object expectedLine: 1Char: 1Code: 0URI:
消息:预期对象行数:1字符:1代码:0URI:
Message: Object expectedLine: 1Char: 1Code: 0URI:
推荐答案
我什至没有看到代码,但直觉告诉我在数组或对象文字内部的某个地方有一个逗号结尾.IE通常会在第1行(毫无意义)扼杀那些出现预期对象
错误的人.
Without even seeing code, my gut tells me that you have a trailing comma somewhere inside an array or object literal. IE will choke on those with the Object expected
error, usually at line 1 (which is meaningless).
类似这样的东西:
var something = [
"val1",
"val2",
"val3",
"val4",
];
^^^^^
这篇关于调试IE错误预期对象的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持!