javascript中的代码是
$(document).ready(function () {var options = {
series: { points: { show: true }, shadowSize: 0 },
xaxis: { mode: "time" },
yaxis: { min:0, max: 100 },
pan: { interactive: true }};
$.getJSON("http://localhost:8085/WebApplication1/metricsJson.jsp?instanceId=3457",
function(data){
alert(data);
var plot = $.plot($("#placeholder"), data, options);
});});
并且 http://localhost:8085/WebApplication1/metricsJson.jsp?instanceId=3457 返回
{“数据”:[[[1258216500000,4.91],[1258212240000,4.39],[1258216920000,4.46],[1258211640000,4.39],[1258210980000,4.82]]]}
谢谢你