layui密码明文暗文转换

									
										
	    		switchPwd: function(){
    			   var passwordeye = $('#passwordeye');
    			   var showPwd = $("#dbpwd");
   			       if(passwordeye.hasClass('fa-eye-slash')){
   			           passwordeye.removeClass('fa-eye-slash').addClass('fa-eye');//密码可见
   			           showPwd.attr('type','password');
   			           form.render();
   			       }else{
   			           passwordeye.removeClass('fa-eye').addClass('fa-eye-slash');//密码不可见
   			           showPwd.attr('type','text');
   			           form.render();
   			       };
	    		},

 

你可能感兴趣的:(layui密码明文暗文转换)