請告訴我爲什麼我無法在我的家html文件中創建此示例?來自文檔的jQuery問題
下面是從site和我的html文件的一個例子:
<head>
<script src="http://dygraphs.com/dygraph-dev.js"></script>
<script>
g = new Dygraph(document.getElementById("graph"),
"X,Y,Z\n" +
"1,0,3\n" +
"2,2,6\n" +
"8,14,3\n",
{
legend: 'always',
animatedZooms: true,
title: 'dygraphs chart template'
});
</script>
<style>
.dygraph-title {
color: gray;
}
</style>
</head>
<body>
<div id="graph"></div>
</body>
我究竟做錯了什麼?
添加MooTools的框架 – dm4web 2014-11-08 20:38:45
小提琴似乎使用Mootols庫。我認爲你可能需要在代碼中添加對這個庫的引用。如果沒有,請驗證控制檯是否發生錯誤。 – ianaya89 2014-11-08 20:38:56