阅读背景:

ajax post回调函数不起作用

来源:互联网 

Here is index.php

这是index . php

post_data = {'username':username, 'old_pass':old_pass, 'new_pass':new_pass};

$.post('change_pass.php', post_data, function(result) {
    if(result.text == 'success') {
        $("#message").text("Password changed successfully");
    } else {
        $("#message").text("Error changing password");
    }
}, 'json');
post_data =



你的当前访问异常,请进行认证后继续阅读剩余内容。

分享到: