question:
Web pages loaded through electron are running in the rendering process. Call console.log in the js code snippet of the web page to output print information.
however, neither the js code snippet that runs itself during the loading process of the page, nor the js code snippet that is called through the message, has no console.log output.
replace the console.log position with alert ("warning"), and you have the output.
environment:
running environment is windows 10, no matter running in git bash or under the terminal, there is no output
have any friends encountered the same problem? How did it all work out? Was it in the wrong position when it was called?
Thank you!