严格模式(“use strict”)在2009年ECMAScript 5 (ES5)规范诞生之前,是没有严格模式的。由于ES5为JavaScript添加了一些了的新特性,为了保证旧的JavaScript代码同样能够正常执行,这些特性被默认隐藏。如果我们需要使用这些特性,就......
2023-10-13 15:45 阅读 阅读全文文章浏览阅读1.5k次。通过 vue-cli-plugin-electron-builder 集成的 electron 环境background.jswebPreferences: { // webSecurity: false,// 取消跨域限制 enableRemoteModule: true, // 取消 Remote 模块警告 nodeIntegration: true // 是否集成 Nodejs}vue 组件const { ipcRenderer......
2024-01-25 02:27 阅读 阅读全文