1. Bind the keyboard Enter event (Note: When submitting with jq, you can submit by pressing the Enter key at the same time. Do not use form at this time.)
document.onkeydown = function(evt){
var evt = window.event?window.event:evt;
if (evt.keyCode==13){
subcomment(); //If the Enter key is pressed, the corresponding js function is executed
}
}