react warning: Each child in an array or iterator should have a unique "key" prop. Check the render method of `xxxxxx`. 原理及解决方法
react里面对于数组的map 必须传入俩个参数“xxxxx".map(function(object,i){
//自己的代码;
});
数组位会帮助react更好的去解析数组,并且与节点建立联系。
react里面对于数组的map 必须传入俩个参数“xxxxx".map(function(object,i){
//自己的代码;
});
数组位会帮助react更好的去解析数组,并且与节点建立联系。