2017-2-27

持续配置金刚狼项目:

在macbook上运行正常,在window下始终出错??

mac 和Ubuntu内核是Linux????

 

https://github.com/webpack/webpack/issues/981

Try running webpack --display-error-details. The error may not be related to file resolution.

 
 

https://segmentfault.com/q/1010000004244980/a-1020000004245227

确保entry是一个数组,entry写成了对象类型咯,应该是数组或字符串

 

react

 

getInitialState() 在生命周期里只执行一次,并设置组件的初始状态。??????????????

compontDidmount也是执行一次,在组件渲染完后执行。

state每次改变都会,都会重新调用render;

this.state.xxx获取组件数据;

this.prop.xxx获取父组件传过来的数据;

componentDidMount 是一个当组件被渲染时被React自动调用的方法

posted @ 2017-02-27 11:35  土豆zhang  阅读(111)  评论(0编辑  收藏  举报