共 4 篇文章 |
|
ES6这些就够了。//es5 var name = ''lux'' console.log(''hello'' + name) //es6 const name = ''lux'' console.log(`hello ${name}`) //hello lux.//对象 const people = { name: ''lux'', age: 20 } const { name, age } = people console.log(`${name} --- ${age}`) //数... 阅77 转0 评0 公众公开 17-06-17 15:20 |
用Electron开发桌面应用 | @Get社区。main.js中的代码:基础发声器(基本的浏览器窗口初始化),关闭发声器(在主进程和渲染进程之间远程通信),不需要把焦点切到应用就可以播放声音(全局快捷键),创建快捷键的设定界面,来变更键位(Shift,Ctrl和Alt)(保存在用户的个人文件夹设置中),加一个托盘图标(远程创建原生GUI元素,了解菜单和... 阅29 转0 评0 公众公开 17-05-24 17:30 |
ctrl-T 使光标前后字符交换cmd-J 将下一行与当前行合并ctrl-cmd-up, ctrl-cmd-down 使当前行向上或者向下移动cmd-shift-D 复制当前行到下一行cmd-K, cmd-U 使当前字符大写cmd-K, cmd-L 使当前字符小写删除和剪切。alt-cmd-[ 折叠alt-cmd-] 展开alt-cmd-shift-{ 折叠全部alt-cmd-shift-} 展开全部cmd-k cmd-N 指定折叠层级 N为层级数文件语法高... 阅25 转0 评0 公众公开 17-05-24 17:25 |
Vue2.0 新手完全填坑攻略。Module._load (module.js:388:25)at Module.require (module.js:468:17)at require (internal/module.js:20:19)at Object.<anonymous> (/Volumes/MacStorage/Coding/Web/vue-test/node_modules/.6.17.0@babel-core/lib/transformation/file/index.js:6:16)at Module._compile (module.js:541:32)at Object.impo... 阅778 转5 评0 公众公开 17-05-24 17:24 |