我正在使用papaparse将.csv文件转换为json。不幸的是,papaparse将数字转换为错误的格式,例如:
139.420248 =>" 139.420.248"
csv string:
35.447998,139.419287,2014-02-02 12:18:32
结果
纬度:" 35.447.998" 经度:" 139.419.287" time_stampe:" 02.02.2014 12:18"
Papaparse
function parseData(url, callBack) {
Papa.parse(url, {`
download: true,
dynamicTyping: true,
header: true,
complete: function (results) { callBack(results.data); }
});
}
感谢您的帮助:)