
web
JetTangs
这个作者很懒,什么都没留下…
展开
-
React Bounds 样式无效
bounds中不带px,且是数字.例如正确写法是minWidth=300而不是minWidth='300px' 而且引入时需要同时引入bounds,和wrap, 否则this.props.activeBounds无值import bounds, { wrap } from 'react-bounds'原创 2016-12-05 11:11:41 · 471 阅读 · 0 评论 -
es6 fetch body格式
let data={username:"jack",password:"123} fetch("user",{ method:"POST", headers:{ "Content-Type": "application/x-www-form-urlencoded", }, body:"username="+data.username+"&password=原创 2016-11-28 10:13:57 · 4951 阅读 · 0 评论 -
react父组件通过ref获取不到子组件方法的解决方案
在子组件中 this.customfunction = this.customfunction.bind(this); 即可原创 2017-01-01 02:36:51 · 10109 阅读 · 1 评论