我正在尝试将Dygraph加载为Yahoo Finance CSV。我怎么会遇到跨域错误。是否存在ajax方式或者这种设置是不可避免的。
<html>
<head>
<script type="text/javascript"
src="dygraph-combined.js"></script>
</head>
<body>
<div id="graphdiv3"
style="width:500px; height:300px;"></div>
<script type="text/javascript">
g3 = new Dygraph(
document.getElementById("graphdiv3"),
"http://finance.yahoo.com/d/quotes.csv?s=AAPL",
{
rollPeriod: 7,
showRoller: true
}
);
</script>
</body>
</html>