Find centralized, trusted content and collaborate around the technologies you use most.
Teams
Q&A for work
Connect and share knowledge within a single location that is structured and easy to search.
我有以下代码:
<img src="<%= Url.Action("LocationMap") %>" id="overlay" />
这需要一点时间才能生成(因为我正在动态生成图像)。
我怎样才能显示“正在加载......” 图像或消息,虽然这是被检索的,因为现在它显示一个损坏的图像链接,直到图像被加载然后它看起来不错。.
像这样的东西?
它只是说添加类似于以下的代码:
<script> $('img').load(function() { //Hide Loading Mask; }); </script>