摘要: 列表渲染 使用map函数遍历数组,生成一个html列表(表头内容) const heads = ["name", "sno", "sex", "age"]; const thead = heads.map((head) => <td key={head}> {head} </td> ); const 阅读全文
posted @ 2021-08-09 08:57 Left_Stan 阅读(80) 评论(0) 推荐(0) 编辑