currentListData.description && currentListData.description.indexOf(...)
报错信息是 currentListData.description为undefined
currentListData.description
{(currentListData.description || [] ).indexOf('允许通过')!==-1 ?"通过":"禁止通行"}
13 回答13k 阅读
7 回答2.2k 阅读
3 回答1.3k 阅读✓ 已解决
6 回答1.3k 阅读✓ 已解决
2 回答1.4k 阅读✓ 已解决
4 回答1.7k 阅读
1 回答1.1k 阅读✓ 已解决
1 回答2.2k 阅读
2 回答2k 阅读
1 回答1.2k 阅读✓ 已解决
2 回答11.4k 阅读✓ 已解决
currentListData.description && currentListData.description.indexOf(...)