|
-
- function save_all_info(){
- var ago = $('#agoInput').val();
- var now = $('#nowInput').val();
- var affirm = $('#affirmInput').val();
- if(now != affirm){
- alert('两次密码不同');
- return;
- }else{
- $.ajax({
- url:'./st-xm/Api/changePassword.php', //请求地址
- type: "post", //请求方式
- data: {agoPwd:ago,nowPwd:now}, //请求参数
- async:false,
- dataType: "json",
- success: function (date) {
- if(date.code==0){
- alert('保存成功');
- } else {
- alert(date.errinfo);
- }
- },
- fail: function (date) {
- alert(date.errinfo);
- }
- });
- }
-
- }
|