As shown below:
document.onkeydown = function (e) { if (!e) e = window.event; if ((e.keyCode || e.which) == 13) { $("#btnSubmit").click(); } }The above example code for the js enter key stimulation event is all the content I share with you. I hope you can give you a reference and I hope you can support Wulin.com more.