![](https://img-blog.csdnimg.cn/20201014180756925.png?x-oss-process=image/resize,m_fixed,h_64,w_64)
react
xunfengZ
这个作者很懒,什么都没留下…
展开
-
React中如何改端口号
在package中的scripts,修改start命令为: "set port=xxxx & react-scripts start " 其中xxxx为端口号,可以自定义原创 2020-12-10 14:15:35 · 269 阅读 · 0 评论 -
React中的双向绑定简易实现
实现效果如下: 简易代码如下 class App extends Component{ constructor(){ super() this.state={ xing:'', ming:'' } } //方法 handleInputChange=(e)=>{//这里如果不用箭头函数的话,this就不指向组件了,需要注意 console.log(e.target); //表示是 当前的dom对象 input cons原创 2020-12-09 21:27:20 · 231 阅读 · 0 评论