Javascript - execute after all images have loaded

前端 未结 9 1369
陌清茗
陌清茗 2020-12-01 05:53

Having read other people\'s questions I thought

window.onload=...

would answer my question. I have tried this but it executes the code the

9条回答
  •  感情败类
    2020-12-01 06:04

    This works great:

    $(function() {
     $(window).bind("load", function() {
        // code here
     });
    });
    

提交回复
热议问题