<!DOCTYPE html> <html> <head> <meta charset="utf-8" /> <title></title> </head> <script> function heh(){ var sid=document.getElementById("btn"); sid.onblur = Function("queryOccupationEveryType(this.value);"); } function queryOccupationEveryType(){ console.log("aa"); } </script> <body> <input id="btn" > <input id="btn1" onclick="heh()" type="button" value="点我"> </body> </html>