window.print(), this method can only be triggered after the page is completely loaded.
When the page loads slowly or when asynchronous JS is loaded, click the page print button to print. window.print() can only be triggered after the page loading is completed, so I want to notify JS to directly trigger Ctrl P implementation