文本域与文本区在打开中文输入法时,所有keyCode与which的取值都不对,在opera下总为197,在其他浏览器下总为229。

<!DOCTYPE html>
<html>
  <head>
    <meta charset="utf-8">
    <title>dom Framework</title>
    <script src="/neo/dom.js"></script>
    <script>
      dom.require("ready,event",function(){
        dom("#test").keydown(function(e){
          dom("#container").text(e.keyCode);
        });
      });

    </script>
  </head>
  <body>
  
    <input />请先打开中文输入法

    <span ></span>
  </body>
</html>

相关文章:

  • 2022-12-23
  • 2022-12-23
  • 2021-09-24
  • 2021-07-02
  • 2021-12-27
  • 2021-12-21
  • 2021-08-18
  • 2021-07-23
猜你喜欢
  • 2022-12-23
  • 2021-09-22
  • 2022-12-23
  • 2022-12-23
  • 2022-12-23
  • 2022-12-23
  • 2022-12-23
相关资源
相似解决方案