xxx.indexOf is not a function报错 lizan 2022-06-29 192 阅读1分钟 报错: 代码: 后来发现healthStatus是数字,而indexOf查找用于字符串或数组中的元素,所以会报错