AngularJS Recycling key Trigger a method of an event

After entering the value in the input box, press the Enter key to trigger an execution of a certain event

HTML:

    
JS:

$ Scope.myKeyup = function (e) {// IE encoding is included in Window.Event.KeyCode, firefox or safari is included in Event.Which Var Keycode = WINDOW.EVENT? E.Keycode: EVENT? E.Keycode: E.WHICH; if (KeyCode = = 13) {$ scope.showkdusers ();}};
Enter key: 13
  left arrow keys: 37  
Right arrow key: 39
The method of returning a return button in AngularJS is that Xiaobian shared to everyone’s full content, I hope to give you a reference, I hope everyone will support Tumi. cloud.

© Copyright Notice
THE END
Just support it if you like
like0
share
comment Grab the couch

Please log in to comment