06 2020 档案

摘要:路由参数是作为props传入组件的,它像普通属性一样,在路由组件创建或重新渲染时传入组件。至于那个周期获取,看实际情况。要用作异步请求可在componentDidmount获取,要渲染出来可在render中获取,要在渲染前做检测可在render之前的生命周期里获取。 阅读全文
posted @ 2020-06-30 17:37 小魏code 阅读(378) 评论(0) 推荐(0)
摘要:https://blog.csdn.net/qq_41604498/article/details/105500474?utm_medium=distribute.pc_relevant.none-task-blog-BlogCommendFromMachineLearnPai2-11.noneca 阅读全文
posted @ 2020-06-19 16:46 小魏code 阅读(3645) 评论(0) 推荐(0)
摘要:1.路由表配置:参数地址栏显示 <Route path="/list/:id" component={List} />html:<Link to='/list/2' >跳转列表页面</Link>Js: this.props.history.push('/list/2');List页面接收:conso 阅读全文
posted @ 2020-06-11 18:13 小魏code 阅读(5590) 评论(0) 推荐(0)
摘要:https://www.cnblogs.com/zxmonster/p/12548821.ht 1.静态布局: 布局特点:宽高固定 2.自适应布局: 布局特点:不同分辨率下,页面元素位置变化,大小不变 实现方法:针对不同分辨率创建对应的样式表,使用 @media 媒体查询给不同尺寸的设备切换不同的样 阅读全文
posted @ 2020-06-03 18:29 小魏code 阅读(1078) 评论(0) 推荐(0)