快速创建一个修改密码的表单

正文开始

//修改密码<br />function resetPwd(btn) {<br />    var postForm = $('<div id="edit_pwd_form"></div>');<br />    postForm.append(makeEditForm({<br />        'url': '/?m=user&do=edit_pwd&json=true',<br />        'success': {<br />            id: ['0043'],<br />            func: 'hideNewBox();'<br />        },<br />        'elements': [<br />            {<br />                em: '当前手机:',<br />                obj: makeInput({name:'old_phone', width: 180, value: '', limit: 'int'})<br />            },<br />            {<br />                em: '设置新密码:',<br />                obj: makeInput({name:'new_pwd1', width: 180, value: ''})<br />            },<br />            {<br />                em: '重输新密码:',<br />                obj: makeInput({name:'new_pwd2', width: 180, value: ''})<br />            },<br />            {<br />                em: '',<br />                obj: [<br />                    makeBtn({type:'submit', value:'提交修改', 'class': 'btn btn-info'})<br />                ]<br />            }<br />        ]<br />    }));<br />    messageView('修改密码', postForm, 465, 200, false, btn);<br />}

正文结束

简单介绍我封装的js 没有上一篇