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
}
}
Statement:The content of this article is voluntarily contributed by netizens, and the copyright belongs to the original author. This site does not assume corresponding legal responsibility. If you find any content suspected of plagiarism or infringement, please contact admin@php.cn