将一个多维数组整合成树形结构,可以通过递归函数来实现
摘要:function buildTree(arr, parentId = null) { let tree = []; for (let i = 0; i < arr.length; i++) { let item = arr[i]; if (item.parentId parentId) { let
阅读全文
posted @
2023-03-27 09:15
chenlw101
阅读(28)
推荐(0) 编辑
ant design 轮播图左右两边加箭头
摘要:<Carousel autoplay arrows={true} prevArrow={<LeftOutlined />} nextArrow={<RightOutlined />}> </Carousel> .ant-carousel .slick-prev, .ant-carousel .sli
阅读全文
posted @
2023-03-23 11:04
chenlw101
阅读(285)
推荐(0) 编辑