240 发简信
IP属地:上海
  • react项目中this指向问题(两种处理方法)

    第一种;绑定this; //处理this.state为undefind的问题! componentDidMount(){ setInterval...

  • react组件里面的render函数外面与render函数里面的区别

    Open a modal dialog onClick={this.showModal} ---------》showModal()方法在组件...

  • React获取DOM的值;

    getDOMNode 0.14之前的东西了 看的哪门子教程 ReactDOM.findDOMNode(this.refs.xxx).value ...

  • npm命令更新包;

    卸载npm uninstall antd 安装npm install antd@2.0.x 装完查看版本npm list antd instal...

  • webpack打包的使用

    第一步:配置打包后的文件夹(build)的路径( 相对于webpack.config.js文件的相对路径 );即打包文件夹的位置的路径 var ...

  • react(constructor与类继承)

    constructor方法和toString方法中;都出现了super关键字;它在这里表示父类的构造函数; 用来新建父类的this对象; 子类必...

  • react项目经验(class , extends , super,constructor())

    class Cat extends Anilimal{ constructor(){ super() this.type= 'animal' }...

  • 使用npm常见的报错处理

    (1)更换npm为淘宝的源(淘宝镜像) npm install -g cnpm --registry=https://registry.npm....

  • react项目经验(props与state)

    使用props你可以吧任意类型的数据传递给组件; 组件对外公开一个简单的属性;(Props)来实现功能; state和props主要的区别在于p...

个人介绍
生命是一种回声。你把最好的给予别人,就会从别人那里获得最好的。