郵箱自動補全

2021-06-06 04:11:24 字數 973 閱讀 4331

差不多半年前寫了個很挫的郵箱補全**,今天寫了個還不錯的

js**
(function()

return }

function autoemail(input)

//在提示框上的事件

this.auto.onmousedown = this.auto.onmouseover = this.auto.onmouseup = function(e)

} }autoemail.prototype =

this.highlight(child[--this.cur]);

break;

case 40://下鍵

if(this.cur == child.length -1)

this.highlight(child[++this.cur]);

break;

case 13://enter

this.input.value = child[this.cur].innerhtml;

this.cur = 0;

this.hide();

break

default:

this.auto.style.display = 'block';

var oldstr = this.input.value;

this.auto.innerhtml = '';

var index = oldstr.indexof('@')

if(index == -1){//如果沒有@則遍歷陣列所有元素,並產生提示

var frag = document.createdocumentfragment();

for(var i=0,l=this.allemail.length;i

jquery css實現郵箱自動補全

html emailautocomple.html12 3456 78910 1112 1314 15 title 郵箱自動補全 姓名 inputtype text name username id username br inputtype text name email id email js ...

jQuery 郵箱下拉列表自動補全

博主原創 如有 寫的不完善的地方還望大家多多指教。html 很簡單,我們就乙個簡單的輸入框,然後乙個ul標籤,在內部可以放好多li標籤。以上便是html 在css中,定義也比較簡單,其中有乙個 lilight 的 class,可以使背景變色,通過 remove 和 add 這個 class,我們可以...

自動補全 Docker 命令自動補全?要的

不知道這個小夥伴有多久沒用過 docker 了,突然對我說 docker 命令怎麼發生變化了 docker run 變成了 docker container run 他說,本來對 docker 命令就不熟悉,這下感覺更加混亂了。其實個人看來,這麼變化還使得命令看著更加規整 當在命令列直接輸入 doc...