Javascript 未捕获引用错误:意外标记} $(函数(){ 变量绘图=$.plot($(“#内容”)[{ 颜色:“#6B6B84”, 标签:“正常一号”, 数据:[ [ [10, 0], [13, 5] ] ] }, { 颜色:“23641E”, 标签:“已修改”, 数据: }], { xaxis:{ 模式:“时间”, 时间格式:“%d/%m/%y” }, 网格:{ 悬停:是的, 自动突出显示:真 } }); });
上面的代码在Chrome中显示“未捕获引用错误:意外标记}”。我定义了一个id=content的div元素。上面的代码是使用“Flot”绘制图形。非常感谢你在这里的帮助!我在这里使用django。我已经重新格式化了您的代码,使其更易于阅读。现在可以看到第二个Javascript 未捕获引用错误:意外标记} $(函数(){ 变量绘图=$.plot($(“#内容”)[{ 颜色:“#6B6B84”, 标签:“正常一号”, 数据:[ [ [10, 0], [13, 5] ] ] }, { 颜色:“23641E”, 标签:“已修改”, 数据: }], { xaxis:{ 模式:“时间”, 时间格式:“%d/%m/%y” }, 网格:{ 悬停:是的, 自动突出显示:真 } }); });,javascript,jquery,html,django,Javascript,Jquery,Html,Django,上面的代码在Chrome中显示“未捕获引用错误:意外标记}”。我定义了一个id=content的div元素。上面的代码是使用“Flot”绘制图形。非常感谢你在这里的帮助!我在这里使用django。我已经重新格式化了您的代码,使其更易于阅读。现在可以看到第二个数据:元素没有值,这是错误的来源 <script type="text/javascript"> $(function () { var plot = $.plot($("#content"), [{
数据:
元素没有值,这是错误的来源
<script type="text/javascript">
$(function () {
var plot = $.plot($("#content"), [{
color: '#6B6B84',
label: 'normal one',
data: [
[
[10, 0],
[13, 5]
]
]
}, {
color: '23641E',
label: 'modified',
data:
}], {
xaxis: {
mode: "time",
timeformat: "%d/%m/%y"
},
grid: {
hoverable: true,
autoHighlight: true
}
});
});
</script>
我已经重新格式化了您的代码,使其更易于阅读。现在可以看到第二个
数据:
元素没有值,这是错误的来源
<script type="text/javascript">
$(function () {
var plot = $.plot($("#content"), [{
color: '#6B6B84',
label: 'normal one',
data: [
[
[10, 0],
[13, 5]
]
]
}, {
color: '23641E',
label: 'modified',
data:
}], {
xaxis: {
mode: "time",
timeformat: "%d/%m/%y"
},
grid: {
hoverable: true,
autoHighlight: true
}
});
});
</script>
我已经重新格式化了您的代码,使其更易于阅读。现在可以看到第二个
数据:
元素没有值,这是错误的来源
<script type="text/javascript">
$(function () {
var plot = $.plot($("#content"), [{
color: '#6B6B84',
label: 'normal one',
data: [
[
[10, 0],
[13, 5]
]
]
}, {
color: '23641E',
label: 'modified',
data:
}], {
xaxis: {
mode: "time",
timeformat: "%d/%m/%y"
},
grid: {
hoverable: true,
autoHighlight: true
}
});
});
</script>
我已经重新格式化了您的代码,使其更易于阅读。现在可以看到第二个
数据:
元素没有值,这是错误的来源
<script type="text/javascript">
$(function () {
var plot = $.plot($("#content"), [{
color: '#6B6B84',
label: 'normal one',
data: [
[
[10, 0],
[13, 5]
]
]
}, {
color: '23641E',
label: 'modified',
data:
}], {
xaxis: {
mode: "time",
timeformat: "%d/%m/%y"
},
grid: {
hoverable: true,
autoHighlight: true
}
});
});
</script>
好。。对象中的参数没有值
data:}
。这是无效的。它应该总是有一个值,或者只是删除它。。对象中的参数没有值data:}
。这是无效的。它应该总是有一个值,或者只是删除它。。对象中的参数没有值data:}
。这是无效的。它应该总是有一个值,或者只是删除它。。对象中的参数没有值data:}
。这是无效的。它应该总是有一个值,或者只是删除它。