解决方法:
https://stackoverflow.com/questions/37614054/loadurl-is-not-working-in-electron
将loadUrl()改为loadURL()
loadUrl()改为
loadURL()
TypeError:mainWindow.loadUrl is not a function
原文:https://www.cnblogs.com/xiaoruilin/p/12845327.html