0

私はpartialViewをロードするために次のコードを持っています:

$(document).ready(function () {
    $("#customer_operations_container").load('/Customer/_AddCustomer');
}

読み込み中の画像を表示できますか?

4

1 に答える 1

3

次のようなことをします

$(document).ready(function () {

    // show loading animation        
    $("#loading-animation").show();

    $("#customer_operations_container").load('/Customer/_AddCustomer', function() {
         // this function is the callback of the 'load' method
         // hide loading animation
         $("#loading-animation").hide();
    });
}
于 2012-11-27T10:45:51.677 に答える