摘要: $(function () { $('#username').focus(function ()//得到教室时触发的时间 { $('#username').val(''); }) $('#username').blur(function () 失去焦点时触发的时间 { if ($('#username').val() == 'marry') { $('#q').text('用户名已存在!') } else { $('#q').text('ok! 阅读全文
posted @ 2014-03-19 15:50 middlesummer 阅读(476) 评论(0) 推荐(0)