更新时间:2023-11-21 08:18:46
我猜你正在使用jQuery.get或者其他一些jQuery ajax函数来加载模态。您可以在ajax调用之前显示指示器,并在ajax完成时将其隐藏。例如
I'm guessing you're using jQuery.get or some other jQuery ajax function to load the modal. You can show the indicator before the ajax call, and hide it when the ajax completes. Something like
$('#indicator').show();
$('#someModal').get(anUrl, someData, function() { $('#indicator').hide(); });