Electron跨平臺桌面應用程序開發 # 002 API介紹(1)事件、進程、File、webview

事件

app常用事件


其他的事件再官方文檔上查閱。

webContents常用事件

進程

問題1

Refused to execute inline event handler because it violates the following Content Security Policy directive: “script-src ‘self’”. Either the ‘unsafe-inline’ keyword, a hash (‘sha256-…’), or a nonce (‘nonce-…’) is required to enable inline execution.
可能會遇到這個問題。
參考:Chrome擴展頁面動態綁定JS事件提示錯誤

我們通過

發表評論
所有評論
還沒有人評論,想成為第一個評論的人麼? 請在上方評論欄輸入並且點擊發布.
相關文章