本文由小千给大家分享Renderer Process API,首先Renderer API 主要包括 remote、Browser window proxy、desktop Capture
Renderer Process API remote Browser Window Proxy desktop Capture
1、remote (服务端对象)
1.1 index.html
<!DOCTYPE html>
<html>
<head>
<meta charset="UTF-8">
<meta http-equiv="Content-Security-Policy" content="script-src 'self' 'unsafe-inline'">
<title>Hello World!</title>
</head>
<body>
<h1>Hello World!</h1>
<button type="button" name="button" id="test-button">Fullscreen</button><br>
<!-- All of the Node.js APIs are available in this renderer process. -->
We are using Node.js <strong><script>document.write( process.versions.node)</script></strong>,
and Electron <strong><script>document.write( process.versions.electron )</script></strong>.
<script>
// You can also require other files to r

最低0.47元/天 解锁文章
1026

被折叠的 条评论
为什么被折叠?



