您好,我想在this.setState中使用子字符串
selectMultipleOptionInvestor(value) {
const maxStrLength = 25;
this.setState(
{
investorsSelected: value.length > maxStrLength ? value.substring(0, maxStrLength) : value,
},
() => console.log(value),
);
}