Solving the bug that occurs when inputting Japanese full-width is mainly the code in the middle of the red line. The idea is to interrupt the Japanese input state. If you can tolerate the pop-up window when the input exceeds, use plan 2, otherwise use plan 1.
The content of this article is voluntarily contributed by netizens, and the copyright belongs to the original author. This site does not assume corresponding legal responsibility. If you find any content suspected of plagiarism or infringement, please contact admin@php.cn