繁体   English   中英

asp.net mvc jquery加载函数并加载图像?

[英]asp.net mvc jquery load function and loading image?

我有以下代码来加载partialView:

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

我可以显示加载图片吗?

做类似的事情

$(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();
    });
}

暂无
暂无

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM