问题描述
我最近进行了一次技术测试,测试的目的是从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 (将#修改为@)