如图所示源代码在这儿
<table id="table_1" >
<tr >
<th width="80px;"></th>
<th>旧密码:</th>
<td colspan="3"><input id="oldPassword" style="width: 250px" type="password" datatype="unique" nullmsg="请输入旧密码" errormsg="旧密码验证失败"></td>
</tr>
<tr>
<th></th>
<th>新密码:</th>
<td colspan="3"><input id="newPassword" style="width: 250px" type="password" datatype="length" nullmsg="请输入新密码" errormsg="新密码必需是8-12位的数字或字母"></td>
</tr>
<tr>
<th></th>
<th>确认新密码:</th>
<td colspan="3"><input id="confirmPassword" style="width: 250px" type="password" datatype="confirm" nullmsg="请输入确认密码" errormsg="新密码和确认密码不一致"></td>
</tr>
<tr>
<th></th>
<th></th>
<td colspan="3"><div style="color: red;" id="result"></div></td>
</tr>
<tr>
<th></th>
<th></th>
<td colspan="3">
<button class="page-button page-button-blue w140" id="submit_1">提交</button></td>
</tr>
</table>
比如用户密码是
123456
。假设加密后为abc
后端应该存的是加密后的密码
abc
.用户这里进行输入旧密码后(change事件后进行加密),回填到框内应该是进行加密处理的
abc
。这样F12,更改
input
类型看到的也是加密后的密码。