不要在render的函数中绑定值 not: <Com onClick={() =>this.handleClick(param)} /> 会导致每次父组件render方法被调...

不要在render的函数中绑定值 not: <Com onClick={() =>this.handleClick(param)} /> 会导致每次父组件render方法被调...
事情是这样的,我在一个父元素里放了五个子元素,当我给子元素统统inline-block的时候,突然发现父元素变高了。 子元素高度在100px左右,而撑开的父元素居然有150p...