反应如何使用嵌套的对象数组来解构对象数组

问题描述

我最近进行了一次技术测试,测试的目的是从api中获取指令列表,将其存储在redux中并进行渲染。基本上就是服务文档。

api返回了大量的对象,包括嵌套的对象数组等。我很快就想尽办法去破坏所有对象。

我没有得到这份工作,但想从中学习并将其作为学习经验,我们将不胜感激!

我已经将其简化为:

[
  {
    title: "Some Title",copy: "Some copy",},{
    title: "Some other Title",curl: "some instruction",dotNet: "some instruction",javascript: "some instruction",{
    title: "Another Title",{
    title: "Yet Another Title",image: {
      fields: {
        title: "Image Title",file: {
          url: "//imgurl",details: {
            image: {
              width: 100,height: 200,caption: "some caption",{
    title: "This is the title",{
    title: "Another title",modules: [
      {
        fields: {
          title: "Title again",copy: "Copy again",{
        fields: {
          title: "Im another title",],];

解决方法

暂无找到可以解决该程序问题的有效方法,小编努力寻找整理中!

如果你已经找到好的解决方法,欢迎将解决方案带上本链接一起发送给小编。

小编邮箱:dio#foxmail.com (将#修改为@)

相关问答

依赖报错 idea导入项目后依赖报错,解决方案:https://blog....
错误1:代码生成器依赖和mybatis依赖冲突 启动项目时报错如下...
错误1:gradle项目控制台输出为乱码 # 解决方案:https://bl...
错误还原:在查询的过程中,传入的workType为0时,该条件不起...
报错如下,gcc版本太低 ^ server.c:5346:31: 错误:‘struct...