自定义博客皮肤VIP专享

*博客头图:

格式为PNG、JPG,宽度*高度大于1920*100像素,不超过2MB,主视觉建议放在右侧,请参照线上博客头图

请上传大于1920*100像素的图片!

博客底图:

图片格式为PNG、JPG,不超过1MB,可上下左右平铺至整个背景

栏目图:

图片格式为PNG、JPG,图片宽度*高度为300*38像素,不超过0.5MB

主标题颜色:

RGB颜色,例如:#AFAFAF

Hover:

RGB颜色,例如:#AFAFAF

副标题颜色:

RGB颜色,例如:#AFAFAF

自定义博客皮肤

-+
  • 博客(9)
  • 收藏
  • 关注

原创 React Uncaught TypeError: _react2.default.unmountComponentAtNode is not a functi

React报错提示: Uncaught TypeError: _react2.default.unmountComponentAtNode is not a function     报错原因: React版本过高,不支持React.render React.unmountComponentAtNode(wrapper);     解决方案: 1.降级React版本 2.使...

2016-05-31 15:20:33 969

原创 React Uncaught TypeError: _react2.default.findDOMNode is not a function

React报错提示: Uncaught TypeError: _react2.default.findDOMNode is not a function     报错原因: React版本过高,不支持React.render React.findDOMNode(this.refs.confirm).focus();     解决方案: 1.降级React版本 2.使用Re...

2016-05-31 15:19:18 515

原创 React Uncaught TypeError: _react2.default.render is not a function

React报错提示: Uncaught TypeError: _react2.default.render is not a function     报错原因: React版本过高,不支持React.render React.render(<Confirm {...props}/>, wrapper);     解决方案: 1.降级React版本 2.使用R...

2016-05-31 15:17:36 760

原创 React <Component> is changing a controlled input of type text to be uncontrolled

React警告提示:   warning.js:44 Warning: AddAddress is changing a controlled input of type text to be uncontrolled. Input elements should not switch from controlled to uncontrolled (or vice versa). ...

2016-05-30 20:11:29 685

原创 React显示原生css style样式在dom对象里

react设置style是需要一个object对象的 var divStyle = { color: 'white', backgroundImage: 'url(' + imgUrl + ')', WebkitTransition: 'all', // note the capital 'W' here msTransition: 'all' // 'ms' is ...

2016-05-23 17:24:55 1381

原创 【解决】React setState延迟delay导致数据更新不及时,代码无法正确执行

之前React setState后在另一个函数调用state的值没有更新:   // init state.type = 'new'; activeMenu(type) { // type = top if (type == this.state.type) return; this.loadList(type); } loadList(type) { ...

2016-05-12 18:41:19 7310 1

原创 doT js模板引擎 使用自定义函数进行渲染的两种方法

doT模板是一款js渲染模板引擎,速度快,文件小,渲染效果良好而著称。 官网-Logo,点击进入:   更多丰富js模板引擎,猛击:https://qiaolevip.github.io/frontend-template-engines/   doT模板Example:https://qiaolevip.github.io/frontend-template-engines/...

2016-05-12 14:05:11 1191

原创 React Uncaught Invariant Violation: ReactMount: Two valid but unequal nodes with

报错提示: invariant.js:39 Uncaught Invariant Violation: ReactMount: Two valid but unequal nodes with the same `data-reactid`: .0.2.4.0.$117405.0   报错原因:      由于你的React代码包含了双重点击事件或者,A标签里面嵌套了A标签或onC...

2016-05-11 17:50:07 385

原创 React Uncaught Invariant Violation: onlyChild must be passed a children with exa

报错提示:   Uncaught Invariant Violation: onlyChild must be passed a children with exactly one child.     报错代码:   pmessage = this.state.showmessage?&lt;div className="pmessage"&gt;{this.state.pme...

2016-05-11 12:03:27 644

空空如也

空空如也

TA创建的收藏夹 TA关注的收藏夹

TA关注的人

提示
确定要删除当前文章?
取消 删除