//点击修改密码 function changeUserPwd(){ var content = '<div id="resetPwd" style="height:120px;"><input type="password" style="display:none;" id="recordPwd" name="recordPwd" /><table id="pwdTable" style="480px;text-align:center;margin-top:15px;">' + '<tr><td style="100px;"><label>原密码:</label></td><td style="150px;text-align:left;"><input id="oldPwd" name="oldPwd" type="password" class="form-control" maxlength="20" style="200px;" onpaste="return false"/></td></tr>' + '<tr><td style="100px;"><label>新密码:</label></td><td style="150px;text-align:left;"><input id="newPwd" name="newPwd" type="password" class="form-control" maxlength="20" style="200px;" onpaste="return false"/></td></tr>' + '<tr><td style="100px;"><label>确认密码:</label></td><td style="150px;text-align:left;"><input id="newPwds" name="newPwds" type="password" class="form-control" maxlength="20" style="200px;" onpaste="return false"/></td></tr>' + '</table></div>' + '<div style="height:40px;margin-left:60px;margin-right:100px;color:red;" id="showError"></div>' + '<div style="text-align:center;margin-top:10px;"><button type="button" class="btn btn-primary" id="upPwd" onclick="upPwd()">确 认</button> <button type="button" class="btn btn-default" id="closeLayerForm" onclick="closeLayer()">返 回</button></div>' + '</div>' + '</div>'; layer.open({ type: 1, title: '修改用户密码', area: ['480px', '300px'], content: content }); }