笔记记录

杂记

React中map循环,如何给每个元素建立ref

用数组或者对象挂载就行了 this.refs = [ ]; 或者 this.refs = {};{     srcs.map((src, i) => {         const frameStyle = {zIndex: 99 - i}; &n

Powered By Z-BlogPHP 1.5.2 Zero

Copyright Your WebSite.Some Rights Reserved.