$("你需要自动触发的按钮").trigger("事件名称,比如:click");
<!doctype html> <html lang="en"> <head> <meta charset="UTF-8"> <title>测试</title> <script src="https://cdn.bootcdn.net/ajax/libs/jquery/3.5.1/jquery.min.js"></script> </head> <body> <input id='num' type="text"> <button id="btn" onclick="butonEvent()">哈哈</button> </body> </html> <script> $("#num").blur(function(){ var inputValue = $("#num").val() console.log(inputValue) $("#btn").trigger("click"); }) function butonEvent(){ alert('1111') } </script>