📜  在 jquery 中输入事件 - Javascript 代码示例

📅  最后修改于: 2022-03-11 15:04:31.979000             🧑  作者: Mango

代码示例3
var e = jQuery.Event("keydown");
e.which = 13; //choose the one you want
e.keyCode = 13;
$("#theInputToTest").trigger(e);