84669 person learning
152542 person learning
20005 person learning
5487 person learning
7821 person learning
359900 person learning
3350 person learning
180660 person learning
48569 person learning
18603 person learning
40936 person learning
1549 person learning
1183 person learning
32909 person learning
My planCount is not fixed, how should I write it, for example
planCount==1; Display level oneplanCount==2; Display level twoplanCount==3; Display level three
{this.props.data.planCount === 1 ? "一级" : (this.props.data.planCount === 2 ? "二级" : "三级")}
<td className="width-w-10">{this.props.data.planCount}级</td>
If you want to convert the numbers into Chinese, additional processing is required. If it does not exceed 10, you can do this
const level = ['一', '二', '三', '四', '五', '六', '七', '八', '九', '十'] <td className="width-w-10">{level[this.props.data.planCount - 1]}级</td>
If you want to convert the numbers into Chinese, additional processing is required. If it does not exceed 10, you can do this