ajax提出中、提出終了の書き方

629 ワード

 $.ajax({
                    url: "/group/searchquan", dataType: "json",
                    data: { name: '@Model.Message', param: i, uid: userid, quantype: '@Model.quantype' },
                    beforeSend: function () {
                        $("#moremore").html("   ...");
                    },
                    complete: function () {
                        $("#moremore").html("    ");
                    },
                    success: function (data) {
                
                    }
                });