I’m confused. I don’t know why I reported an error. Later, I checked on the Internet and realized that indexof is a string method. I wrote numbers myself. Naturally, it’s not supported. It’s strange not to report an error.
Turn the number into a string, OK, no problem