$('#email').autocomplete({ delay:0, autoFocus:true, source:function(request,response){ var hosts = ['qq.com','163.com','263.com','gmail.com','sina.com.cn'], term = request.term,//获取用户输入内容 name = term,//邮箱的用户名 host = '',//邮箱的域名 ix = term.indexOf('@'),…