1. Binding the keyboard Enter event (Note: If you want to press the Enter key at the same time when submitting JQ, you can submit it at the same time. Do not use Form at this time.)
Copy code code as follows:
document.onkeydown = Function (EVT) {
var EVT = Window.event? Window.event: EVT;
if (EVT.KEYCODE == 13) {
subcomment (); // If you press Enter, execute the corresponding JS function
}
}