【发布时间】:2017-11-13 06:05:52
【问题描述】:
例如,我有一些带有 JSON 数据的 txt 文件:
"assets": [
{
"id": 1,
"name": "Mike",
"contract": "N23421",
"about": teacher
},
{
"id": 2,
"name": "Helen",
"contract": "N43212",
"about": teacher
}
]
通常我使用 Redux 从服务器上传/解析这个文件。
那时我需要从本地存储中获取上传相同的文件。 那么,如何通过对本地文件使用 Actions 和 Reducers 来做到这一点? 我将不胜感激任何帮助或建议。
【问题讨论】:
标签: json reactjs redux react-router react-redux