document.getelementid().onblur.function(){}函数没有到达预期结果

光标离开后 没有提示

img

img

img

img

 var passwordObj = document.getElementById("password") //获取对象
 passwordObj.onblur = function (){  //对象.事件名 = function(){}
        console.log("动态注册失去焦点事件")
 }

=function

把你写的光标失去焦点的代码发出来,看你问题给的函数是错误的