javascript - Trying to Simply Access Array in Papaparse -
i'm trying access array in papaparse - , spit out elements of array either header name or array address (1,1) etc.
however, can't data load correctly. count of lines shows correctly @ 258, whole thing reads[object object], [object object], [object object] ...etc
<html> <head> <script src="http://ajax.googleapis.com/ajax/libs/jquery/1.11.2/jquery.min.js"></script> <script src="papaparse/papaparse.min.js"></script> </head> <body> <script> var results; var data; var file = "datapipe.csv"; papa.parse(file, { download: true, header: true, dynamictyping: true, delimiter: "|", complete: function(results) { data = results; console.log("remote file parsed!", results); //document.write(results.data["1"][0] ); document.write(results.data ); } }); </script> </body> </html>
Comments
Post a Comment