2019-11-14 07:46:24
34
0
0
### 1.内联方式
```
const styles = { TodoComponent: { width: "300px", margin: "30px auto", backgroundColor: "#44014C", minHeight: "200px", boxSizing: "border-box", }, Header: { fontSize: "20px", } } clas
2019-11-14 07:46:24
22
0
0
> 参考: https://blog.csdn.net/qq_29311407/article/details/80897514
2019-11-14 07:46:24
9
0
0
> 参考: https://blog.csdn.net/u011413061/article/details/53561581
2019-11-14 07:46:24
33
0
0
> 参考: https://blog.csdn.net/sensyup/article/details/77749083
2019-11-14 07:46:24
143
0
0
## `::`在React中的意义
### 我在看一些项目的时候遇到了::这种写法,查了之后才知道这种是ES7针对.bind的新语法。
#### 例如:在React中我们常见的写法是 ,那么ES7中我们可以按照如下格式方法书写
` `
2019-11-14 07:46:24
41
0
0
> 官网: https://nervjs.github.io/taro/docs/README.html
2019-11-14 07:46:24
16
0
0
> 1. 调试组件
React Developer Tools
2. 调试redux
Redux DevTools
2019-11-14 07:46:24
75
0
0
### pc端-ui库
>
1. Ant Design of React
文档: https://ant.design/docs/react/introduce-cn
***
### H5端-ui库
>
1. Ant Design Mobile of React
预览: https://mobile.ant.design/kitchen-sink/
文档:
2019-11-14 07:46:24
70
0
0
### axios Content-Type: multipart/form-data(上传文件)
let formData = new FormData();
formData.append('appkey', 'njssdjtkj');
formData.append('sign', sign);
formData.appen
2019-11-14 07:46:24
49
0
0
## 在做react项目时,有时候需要将后台传过来的html的字符串变成真正的结构渲染到页面,如果直接插入的话页面显示的就是这段字符串,而不会进行转义,可以用以下方法插入,便可以html的形式展现:
14/19