Browse Source

登录js闭包bug解决

luyanan 8 years ago
parent
commit
0a064d7c31
1 changed files with 6 additions and 3 deletions
  1. 6 3
      src/main/webapp/js/login.js

+ 6 - 3
src/main/webapp/js/login.js

@ -4,7 +4,11 @@ $(function(){
4 4
	var boxWidth = $(".loginbox").width();
5 5
	var boxHeight = $(".loginbox").height();
6 6
	$(".loginbox").css({ top: (_height - boxHeight) / 2 +"px", left: (_widht - boxWidth) / 2 + "px" });
7

7
//	console.log(_widht);
8
//	console.log(_height);	
9
//	console.log(boxWidth);	
10
//	console.log(boxHeight);
11
})
8 12
	var namePass = false;
9 13
	var passwordPass = false;
10 14
	function nameVal()
@ -93,5 +97,4 @@ $(function(){
93 97
	}
94 98
	function restSub(data) {  
95 99
         $(".msg5").text("");
96
     } 
97
})
100
     }