I know that D3.js supports loading data files with XHR and JSONP requests.
However in my case, I am going to run .html files by double clicking on them from filesystem, which is going to run it like file://.../foo.html
on browser.
Is it possible to load data file (csv or json) within the same directory from computer as foo.html
on browser (while not running on http://
but file://
)?
See Question&Answers more detail:
os 与恶龙缠斗过久,自身亦成为恶龙;凝视深渊过久,深渊将回以凝视…