小白使用react---ajax请求后的数据在另一个页面显示

来源:互联网 发布:mac如何移除桌面图标 编辑:程序博客网 时间:2024/06/05 23:52

搜索了各种资料,有以下两条路线

1、组件间的通信,我想实现的是兄弟间的组件通信

  期间搜到了,容器组件,是redux的内容(由于项目比较赶,学习这个也需要时间,就没使用)

https://www.cnblogs.com/chris-oil/p/6271312.html

https://www.cnblogs.com/libin-1/p/7087605.html

http://blog.csdn.net/kongjunchao159/article/details/72725736

http://blog.csdn.net/limm33/article/details/50942863

2、ajax请求的数据先从到localstorge中,在另一个页面再取出来。

http://blog.csdn.net/cdp19930414/article/details/52937263


阅读全文
0 0
原创粉丝点击