record.isFinal == 1 ? ('<span title="' + (record.channelCode || "" ) + '">' + record.channel + '</span>' + '*') : '<span title="' + (record.channelCode || "" ) + '">' + record.channel + '</span>', 新增一个条件record.financeFB==1的情况下赋值**,如何修改
时间: 2024-03-28 17:41:44 浏览: 107
渠道间库存规则设置接口-vba的妙用:串口通讯程序与excel相结合
您可以像这样修改代码:
```
(record.isFinal == 1 ? ('<span title="' + (record.channelCode || "" ) + '">' + record.channel + '</span>' + '*') : '<span title="' + (record.channelCode || "" ) + '">' + record.channel + '</span>') + (record.financeFB == 1 ? "**" : "");
```
这样,当 `record.financeFB` 等于 1 时,会在返回的字符串后面添加 "**"。
阅读全文