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
Similar Posts:
- [Solved] Typeerror: can read property ‘index of’ of null
- Solutions to the problem of too many arguments in Linux Bash
- Resolved [org.springframework.web.bind.MissingServletRequestParameterException: Required request parameter ’email’ for method parameter type String is not present]
- [Solved] Postgre Error: ERROR: UNION types numeric and character varying cannot be matched
- Gradle Could not find method leftShift() for arguments
- Some solutions to the error of [the underlying provider failed on open]
- CreateNewFile() error: open failed: ENOENT (No such file or directory) solution
- Go Project Start Error: package not in GOROOT & import cycle not allowed
- [Solved] DOM parsing XML Error: Content is not allowed in prolog
- [Solved] Python TypeError: sequence item 0: expected str instance, int found