我只是想在这里为将来的人们添加一些代码,因为我试图将 JSON 导出到 CSV 文档并下载它。 我个人用 $.get $.get('{{ url('/newsletter/download') }}', $formdata, function(data) { // console.log(data); var items = jQuery.parseJSON(data); const replacer = (key, value) => value === null ? '' : value; // specify how you want to handle null values here const header = Object.keys(it…