Find centralized, trusted content and collaborate around the technologies you use most.
Teams
Q&A for work
Connect and share knowledge within a single location that is structured and easy to search.
最新的解决方案是e.currentTarget.value = String.fromCharCode(32); 但在这种情况下,表单似乎从输入标签中修剪了所有空格。传递的输入标签的值为""(空)
e.currentTarget.value = String.fromCharCode(32);
""