我正在尝试将 dygraph 用于 javascript。
<html>
<head>
<script type="text/javascript"
src="dygraph-combined.js"></script>
</head>
<body>
<div id="graphdiv2"
style="width:500px; height:300px;"></div>
<script type="text/javascript">
g2 = new Dygraph(
document.getElementById("graphdiv2"),
"C:/temperatures.csv", // path to CSV file ***This file is local file in my C: drive***
{} // options
);
</script>
</body>
temperature.csv 是我机器上的本地文件。我读了几篇说 .csv 文件必须在远程机器上的帖子。我想知道有没有办法读取本地 .csv 文件。你能建议一些解决方案吗?谢谢。