$("btnCodes").onblur(function(){}哪位大神知道onblur怎么在js里使用提示错误这个:$(...).onblur is not a function
12 回答

蝌蚪先生
TA贡献12条经验 获得超25个赞
1:引入jq文件
2:
如果 id="btnCodes" ,则
$("#btnCodes").blur(function(){
alert('hi,我是来赚积分的');
});
如果 class="btnCodes" ,则
$(".btnCodes").blur(function(){
alert('hi,我是来赚积分的');
});
添加回答
举报
0/150
提交
取消