请告诉我为什么我无法在我的家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