Commit 731a0e6ef9010e4dfabdefe17e9ae46e27704755
1 parent
7231b755
密码历史
Showing
1 changed file
with
17 additions
and
0 deletions
WebRoot/WEB-INF/jsp/system/index/login.jsp
... | ... | @@ -353,6 +353,23 @@ input:focus-within{ |
353 | 353 | var passWordList=[]; |
354 | 354 | //console.log(JSON.parse(storage.getItem('userNameList'))); |
355 | 355 | |
356 | + $("#loginname").focus(function(e){ | |
357 | + $("#password").attr("type","password"); | |
358 | + var _html=""; | |
359 | + var u_list=JSON.parse(storage.getItem('userNameList')); | |
360 | + console.log(u_list); | |
361 | + if((u_list!=null)||(u_list.length>0)){ | |
362 | + $("#loginname").blur(function(){ | |
363 | + $(".history").hide(); | |
364 | + }) | |
365 | + for(var i=0;i<u_list.length;i++){ | |
366 | + _html+='<li>'+u_list[i]+'</li>'; | |
367 | + } | |
368 | + $(".history ul").html(_html); | |
369 | + $(".history").show(); | |
370 | + } | |
371 | + }); | |
372 | + | |
356 | 373 | //清除历史记录 |
357 | 374 | function clear_history(){ |
358 | 375 | window.top.remove.init({"title":"确定清除历史记录吗?","func":function(success){ | ... | ... |