12 2019 档案

摘要:下载文件,一般后台返回的是文件流。前台如果用的fetch的话,respose里面是空的,什么也看不到。用的axios的话,是一堆字符串形式的东西。 封装请求方法的时候,用 response.headers.get('Content-Type').includes('application/json' 阅读全文
posted @ 2019-12-26 14:57 浪浪浪浪浪浪浪浪 阅读(6977) 评论(0) 推荐(0)
摘要:<div className={styles.content}> <Row> <Col id="left" style={{ position: 'absolute', height: '100%', width: `${this.state.width}px` }}> <div/> // 这里写内 阅读全文
posted @ 2019-12-11 09:24 浪浪浪浪浪浪浪浪 阅读(238) 评论(0) 推荐(0)
摘要:父组件: <Child onRef={(ref) => { this.child = ref; }} /> 用的时候直接从this.child里面取 子组件: componentDidMount() { this.props.onRef(this); } 阅读全文
posted @ 2019-12-10 17:22 浪浪浪浪浪浪浪浪 阅读(7212) 评论(3) 推荐(0)