SCRIPT1028:预期的标识符,字符串或数字 [英] SCRIPT1028: Expected identifier, string or number
本文介绍了SCRIPT1028:预期的标识符,字符串或数字的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!
问题描述
我正在运行一个显示事件日历的插件。除了在IE兼容模式下,它在所有浏览器中都很好用。选中该选项后,日历将消失。我相信它是一个JS错误。
I'm running a plugin that displays an events calendar. It works great in all browsers except in IE compatibility mode. When that option is checked, the calendar disappears. I believe its a JS error.
IE调试器错误:
element.qtip({
content: {
text: event.description,
title: {
text: 'Description',
}
},
position: {
at: 'top right',
adjust: {
x: 0, y: 30
},
},
在我的插件编辑器中,这是代码:
In my plugin editor this is the code:
element.qtip({
content: {
text: event.description,
title: {
text: '<?php _e('Description', 'event_espresso'); ?>',
}
},
position: {
at: 'top right',
adjust: {
x: 0, y: 30
},
},
我不是很棒在调试,所以任何帮助将不胜感激。
I'm not great at debugging so any help would be appreciated.
如果有帮助,请点击以下页面: http://www.mbausa.org/calendar/
If it helps, here is the page: http://www.mbausa.org/calendar/
推荐答案
Internet Explor对象和数组中的尾随逗号有麻烦;
Internet Explorer have troubles with trailing commas in objects and arrays;
title: {
text: 'Description', //<--
}
你可能想要:
title: {
text: 'Description'
}
这篇关于SCRIPT1028:预期的标识符,字符串或数字的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!
查看全文