摘要: 1.安装 electron-packager 2.electron-packager 应用目录 应用名称 打包平台 左上角的图标和任务栏的图标 输出目录 架构 版本 win打包: electron-packager . XD --platform=win32 --arch=x64 --icon=./ 阅读全文
posted @ 2019-02-28 17:45 raunds 阅读(2619) 评论(0) 推荐(0) 编辑
摘要: 1.前置条件 1.1:安装 python2.7。python 若是有问题,如果之前安装过多个版本,则必须 npm config set python "/path/python.exe"。必须为2.7版本。 1.2:安装 Visual Studio 2015 ,安装过程中需要安装c++相关,必须安装 阅读全文
posted @ 2019-02-28 16:20 raunds 阅读(2651) 评论(0) 推荐(0) 编辑
摘要: var start=1491789600000;//2017-4-10 10:00 var end=1494381600000;//2017-5-10 10:00 var utc=end-start; utc/(24*60*60*1000);// 天 utc/(60*60*1000);//小时 utc/(60*1000); // 分 阅读全文
posted @ 2018-09-05 12:00 raunds 阅读(8780) 评论(0) 推荐(0) 编辑
摘要: // 插入 meta 标签 var oMeta = document.createElement('meta'); oMeta.content = 'width=device-width, initial-scale=1.0, maximum-scale=1.0,minimum-scale=1.0, user-scalable=0'; ... 阅读全文
posted @ 2018-08-07 11:58 raunds 阅读(12750) 评论(0) 推荐(1) 编辑
摘要: function firstIndex(arr, text) { // 若元素不存在在数组中返回-1 let firstVal = -1; for (let i = 0; i < arr.length; i++) { // json (arr[i].id == text) if (arr[i] === text) { ... 阅读全文
posted @ 2018-08-07 11:26 raunds 阅读(4471) 评论(0) 推荐(0) 编辑
摘要: let list = [ { id: "1", content: "A" }, { id: "2", content: "B" }, { id: "3", content: "C" ... 阅读全文
posted @ 2018-08-06 14:39 raunds 阅读(4957) 评论(0) 推荐(0) 编辑
摘要: 1 let arr = [1, 2, 3, 10, 4, 5, 1, 3, 5]; 2 let stateNumArr = arr.filter((item, index, array) => { 3 return array.indexOf(item) === index; 4 }); 5 console.log(stateNum... 阅读全文
posted @ 2018-07-30 11:17 raunds 阅读(704) 评论(0) 推荐(0) 编辑
摘要: input::-webkit-input-placeholder, textarea::-webkit-input-placeholder { color: rgba(74, 87, 103, 1); } input:-moz-placeholder, textarea:-moz-placehold 阅读全文
posted @ 2018-07-24 10:25 raunds 阅读(955) 评论(0) 推荐(0) 编辑
摘要: 窗口相对于屏幕顶部距离 window.screenTop 窗口相对于屏幕左边距离 window.screenLeft, 屏幕分辨率的高 window.screen.height, 屏幕分辨率的宽 window.screen.width, 屏幕可用工作区高度 window.screen.availHe 阅读全文
posted @ 2018-07-20 09:29 raunds 阅读(368) 评论(0) 推荐(0) 编辑
摘要: let date = new Date(); let date = new Date(); date.getYear(); //获取当前年份(2位) date.getFullYear(); //获取完整的年份(4位) date.getMonth(); //获取当前月份(0-11,0代表1月) dat 阅读全文
posted @ 2018-07-16 17:39 raunds 阅读(209) 评论(0) 推荐(0) 编辑