1. 首页
  2. 数据库
  3. 其它
  4. react中写动态标签render方法中如何使用if else 判断

react中写动态标签render方法中如何使用if else 判断

上传者: 2021-02-07 17:58:06上传 PDF文件 24.5KB 热度 11次
在render()中循环数据,根据数据不同展示标签不同 import React from 'react'; const quanList=[ { id:1, buy_price:1,//购买券的价格 quan_price:30,//可抵扣价格 quanName:'仅限(学习机)商品使用', on_time:'2020-11-01', off_time:'2020-11-30', isHave:false, },
下载地址
用户评论