0

我是 jquery mobile 的新手。我正在使用 jquery mobile 开发应用程序。我有一个表单,在提交时会触发多次提交。代码如下:

$(document).on('click', '#btnUpdateExperience', function() {

    var posting = $.post( "mypage.php", $('#frmabc').serialize() );
    posting.done(function( data ) {         
        $.mobile.loading( "hide" ); 
        if(data == 1)
        {
            $.mobile.changePage("profile.html", {transition:"slide"});
            return false;
        }
        else
        {
            showToastMessage(data); 
        }

    });
});

请让我知道我错在哪里。

4

0 回答 0