Solve the incompatibility of keyup, keydown and other events under ios

Entering numbers in the search box under the ios system can achieve fuzzy query, but entering Chinese cannot.

Incompatible events such as keyup and keydown under ios:

use native js to solve the incompatibility:

document.getElementById('testautofocus').addEventListener('input', function(e){ }); 

It seems that native js is still very powerful, ha haha~

Guess you like

Origin http://43.154.161.224:23101/article/api/json?id=325830029&siteId=291194637