05 2020 档案

摘要:jsx的原理 利用react.createElement创建元素进行渲染 行内样式 {{}}:第一层js模板,第二层是对象 className:引入样式 refs 利用ref访问dom元素 做到类似于输入框清除 `` `hand=()= { this.inputDom.current.focus() 阅读全文
posted @ 2020-05-08 10:27 木头小屋 阅读(79) 评论(0) 推荐(0) 编辑
摘要:知乎有对react、知识整理 生命周期: 首次实例化:getDefaultProps getInitialState componentWillMount render componentDidMount 实例化完成后的更新:getInitialState componentWillMount re 阅读全文
posted @ 2020-05-07 14:40 木头小屋 阅读(128) 评论(0) 推荐(0) 编辑
摘要:https://www.cnblogs.com/Angies/p/7508907.html dispatch:含有异步操作,例如向后台提交数据,写法: this.store.dispatch(action,)committhis.store.commit('mut 阅读全文
posted @ 2020-05-04 10:34 木头小屋 阅读(178) 评论(0) 推荐(0) 编辑
摘要:var arr=['momo','yanzi','ziwei'] var obj={ 'host':'www.baidu', 'port':'12345', 'node':'selector' } Mock.mock('http://www.bai.com',{ 'firstName|3':'fei 阅读全文
posted @ 2020-05-04 09:01 木头小屋 阅读(377) 评论(0) 推荐(0) 编辑

点击右上角即可分享
微信分享提示