AVt天堂网 手机版,亚洲va久久久噜噜噜久久4399,天天综合亚洲色在线精品,亚洲一级Av无码毛片久久精品

當前位置:首頁 > 科技  > 軟件

Electron 26.0.0 正式發布,跨平臺桌面應用開發工具!

來源: 責編: 時間:2023-08-20 23:16:56 570觀看
導讀8 月 15 日,Electron 26.0.0 正式發布!該版本包括了對 116.0.5845.62、V8 11.2 和 Node.js 18.16.1 的升級。下面就來看看該版本都有哪些更新吧!可以通過以下命令來安裝最新版本:npm install electron@latest主要更新技術

8 月 15 日,Electron 26.0.0 正式發布!該版本包括了對 116.0.5845.62、V8 11.2 和 Node.js 18.16.1 的升級。下面就來看看該版本都有哪些更新吧!wYf28資訊網——每日最新資訊28at.com

可以通過以下命令來安裝最新版本:wYf28資訊網——每日最新資訊28at.com

npm install electron@latest

主要更新

技術棧

  • Chromium 116.0.5845.62
  • V8 11.2
  • Node.js 18.16.1

重要更新

已棄用:webContents.getPrinters

webContents.getPrinters 方法已被棄用??梢允褂?nbsp;webContents.getPrintersAsync 代替。wYf28資訊網——每日最新資訊28at.com

const w = new BrowserWindow({ show: false });// 棄用console.log(w.webContents.getPrinters());// 改用w.webContents.getPrintersAsync().then((printers) => {  console.log(printers);});

已棄用:systemPreferences.{get,set}AppLevelAppearance 和 systemPreferences.appLevelAppearance

systemPreferences.getAppLevelAppearance 和 systemPreferences.setAppLevelAppearance 方法以及 systemPreferences.appLevelAppearance 屬性已被棄用。可以改用 nativeTheme 模塊。wYf28資訊網——每日最新資訊28at.com

// 棄用systemPreferences.getAppLevelAppearance();// 改用nativeTheme.shouldUseDarkColors;// 棄用systemPreferences.appLevelAppearance;// 改用nativeTheme.shouldUseDarkColors;// 棄用systemPreferences.setAppLevelAppearance('dark');// 改用nativeTheme.themeSource = 'dark';

已棄用:systemPreferences.getColor 的 alternate-selected-control-text 值

systemPreferences.getColor 的 alternate-selected-control-text 值已被棄用??梢愿挠?nbsp;selected-content-background。wYf28資訊網——每日最新資訊28at.com

// 棄用systemPreferences.getColor('alternate-selected-control-text');// 改用systemPreferences.getColor('selected-content-background');

全新特性

  • 添加了safeStorage.setUsePlainTextEncryption和safeStorage.getSelectedStorageBackendAPI。
  • 將 senderIsMainFrame 添加到通過 ipcRenderer.sendTo() 發送的消息中。
  • 添加了將菜單標記為鍵盤啟動的支持。

終止對 23.x.y 的支持

根據項目的支持政策,Electron 23.x.y 已結束支持。鼓勵開發人員和應用程序升級到較新版本的 Electron。wYf28資訊網——每日最新資訊28at.com

圖片圖片wYf28資訊網——每日最新資訊28at.com

參考:https://www.electronjs.org/blog/electron-26-0wYf28資訊網——每日最新資訊28at.com

本文鏈接:http://www.tebozhan.com/showinfo-26-6170-0.htmlElectron 26.0.0 正式發布,跨平臺桌面應用開發工具!

聲明:本網頁內容旨在傳播知識,若有侵權等問題請及時與本網聯系,我們將在第一時間刪除處理。郵件:2376512515@qq.com

上一篇: 利用 GetUserMedia 和 MediaRecorder API 玩轉音頻錄制、播放和下載

下一篇: 如何使用 Python 生成和讀取條形碼

標簽:
  • 熱門焦點
Top