- 博客(3)
- 收藏
- 关注
原创 VS Code中通过create-react-app demo创建项目时报错
## create-react-app : 无法加载文件 C:\Users\admin\AppData\Roaming\npm\create-react-app.ps1,因为在此系统上禁止运行脚本。有关详细信息,请参阅 https:/go.microsoft.com/fwlink/?LinkID=135170 中的 about_Execution_Policies。## 解决方法:1.搜索框输入:Windos PowerShell 并且以右键管理员身份运行2、打开了命令行之后,输入set-Execu
2020-07-03 14:47:35 375 1
原创 React中给元素添加样式
第一种: 给元素添加内联样式<h1 style={{ fontSize: ‘16px’,color: ‘#ff0000’}}>第二种:给元素添加外部样式1.引入样式 import './css/app.css’2.使用样式
2020-07-02 20:19:14 1241
原创 React 中使用 ajax 方法
React中使用ajax的方法1.安装npm install axios --save2.导入import axios from ‘axios’3.react中使用let res = await axios.get(‘路径’)
2020-07-02 17:55:47 449
空空如也
空空如也
TA创建的收藏夹 TA关注的收藏夹
TA关注的人