Home >Web Front-end >JS Tutorial >js method to let the browser DOM element be loaded last_javascript skills
JS method to let the browser DOM element be loaded last
window.onload = =function() { a(); b(); }
Just after all elements of the interface are loaded, execute the a() method and b() method to prevent the dialog box from popping up halfway through the interface loading, resulting in a blank background