Welcome to OStack Knowledge Sharing Community for programmer and developer-Open, Learning and Share
Welcome To Ask or Share your Answers For Others

Categories

0 votes
3.0k views
in Technique[技术] by (71.8m points)

electron网络请求没有吗??为什么引不出net????

在electron中想使用http请求,跨域的,使用electron的,不是浏览器的。
网上搜到的就一样,都是electron。net
image.png

结果,我自己在electron的客户端控制台里这么弄就不行,
未定义
image.png

图上可以看到不管是electron.net还是electron.remote.net都没有啊,怎么回事???

一脸懵逼我现在


与恶龙缠斗过久,自身亦成为恶龙;凝视深渊过久,深渊将回以凝视…
Welcome To Ask or Share your Answers For Others

1 Answer

0 votes
by (71.8m points)

没有设置参数,所以远程没有办法引入,已经解决


与恶龙缠斗过久,自身亦成为恶龙;凝视深渊过久,深渊将回以凝视…
Welcome to OStack Knowledge Sharing Community for programmer and developer-Open, Learning and Share
Click Here to Ask a Question

...