谁能指出我为什么以下不会输出任何图表。我安装了 flot 插件并使用 Grails 2.0,所以 jquery 是默认的...
<head>
<flot:resources includeJQueryLib="false"/>
<title>Performance Graphs for: ${data[0]?.sn}</title>
<meta name="layout" content="main" />
</head>
<body>
<g:javascript>
var ingest = [[0, 3], [4, 8], [8, 5], [9, 13]];
var options = {
lines: { show: true },
points: { show: true }
};
</g:javascript>
<flot:plot id="test" stype="width: 600px; height: 300px"
data="ingest" option="options" />
</body>