e.keyCode does not work

后端 未结 6 576
天命终不由人
天命终不由人 2021-01-23 08:56

I would like to ask you about something that does not work for me ? If you could help me please.

Html:



        
6条回答
  •  悲哀的现实
    2021-01-23 09:22

    Function can't be a function name. In your HTML, change function(id, e) into, say, inputKeypress(id, e), or any other name you see fit.

    In your JavaScript, declare he function like so:

    function inputKeypress(id, e) {
        do stuff
    }
    

提交回复
热议问题