Javascript Webview预加载不工作

Javascript Webview预加载不工作,javascript,node.js,webview,electron,node-webkit,Javascript,Node.js,Webview,Electron,Node Webkit,我已从index.html页面创建了Electron应用程序;) 在index.html页面中,我创建了webview元素,如下所示: <webview id="trello" src="https://trello.com" disablewebsecurity preload="./webview.js"></webview> 但是当我打开devtools时,我得到了一个错误: Unable to load the preload script: D:\<

我已从index.html页面创建了Electron应用程序;)

在index.html页面中,我创建了webview元素,如下所示:

<webview id="trello" src="https://trello.com" disablewebsecurity preload="./webview.js"></webview>

但是当我打开devtools时,我得到了一个错误:

Unable to load the preload script: D:\<%path_to_my_work_folder%>\webview.js
无法加载预加载脚本:D:\\webview.js
如何解决这个问题?如何加载javascript文件

是的,我在项目文件夹的根目录中创建了webview.js;)