1呢撞、React的return中如果使用多個(gè)標(biāo)簽必須放在一個(gè)div中,否則瀏覽器無(wú)法解析
記得加{},經(jīng)常忘
2函卒、ReactComponentWithPureRenderMixin報(bào)錯(cuò)君纫,原因是antd沒(méi)裝好
3竿开、JS報(bào)錯(cuò) Uncaught TypeError: Cannot read property 'extend' of undefined
原因:在business.html中引用css未生效,在main.css中引用生效掸读,so strange
4串远、"Uncaught Error: Minified exception occurred; use the non-minified dev environment for the full error message and additional helpful warnings."
原因:render()中的注釋導(dǎo)致,刪除注釋即可
5儿惫、state樹更新失敗:亂用antd中的分頁(yè)澡罚,導(dǎo)致數(shù)據(jù)顯示錯(cuò)誤
6、有更新的變量寫在render內(nèi)部肾请,否則每次刷新會(huì)將新數(shù)據(jù)存入state中留搔,弄了一天,感謝奔哥~