bug

来源:互联网 发布:js 对象编程 编辑:程序博客网 时间:2024/04/29 09:39

1.路径错误,少一个点

2.js不弹框,检查看是否<script>标签写全或是其他语法错误

3.jquery中blur事件中想要获取focus事件应该用setTimeout,不能直接写focus(),正确如下

$("#a").blur(function(){

setTimeout(function(){

$("#a").focus();

})

})

原创粉丝点击