<input id="txtOrderID" onkeypress="getKey(event)" />
    <button onclick="refund()">提交</button>
    <script src="https://cdn.bootcss.com/jquery/1.8.3/jquery.js"></script>
    <script>
        function getKey(event) {
            if (event.keyCode == 13) {
                refund();
            }
        }
    </script>

 

相关文章:

  • 2021-07-02
  • 2022-12-23
  • 2022-12-23
  • 2022-12-23
  • 2021-08-22
  • 2022-12-23
  • 2022-12-23
  • 2022-01-26
猜你喜欢
  • 2022-12-23
  • 2022-01-02
  • 2021-10-06
  • 2021-11-13
  • 2021-09-30
  • 2022-12-23
  • 2022-12-23
相关资源
相似解决方案