【发布时间】:2012-11-27 10:43:13
【问题描述】:
我有以下代码来加载部分视图:
$(document).ready(function () {
$("#customer_operations_container").load('/Customer/_AddCustomer');
}
我可以显示加载图像吗?
【问题讨论】:
标签: jquery asp.net-mvc jquery-load
我有以下代码来加载部分视图:
$(document).ready(function () {
$("#customer_operations_container").load('/Customer/_AddCustomer');
}
我可以显示加载图像吗?
【问题讨论】:
标签: jquery asp.net-mvc jquery-load
做类似的事情
$(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();
});
}
【讨论】: