Loading csv file into jQuery?
问题 I have a CSV file that I would like to use as source data for a jQuery flot graph. Should I: Find a jQuery plugin that will load the CSV file directly? Convert the CSV file into JSON and use that instead? Do something completely different? I'm not having much luck finding a jQuery plugin that can cope with an external CSV file, but maybe I'm missing something. 回答1: Use the jQuery CSV plugin to get an array. Build / sort the array however you need for the chart. jQuery CSV Plugin It just