摘要: 问题描述: 按照iview官方的说法配置i18n发现在使用组件的时候会报错。 兼容 vue-i18n@6.x+的配置如下图 报错如下图 解决方法: 经过参考element-ui的国际化配置终于解决问题。 解决方法如下图 阅读全文
posted @ 2018-06-06 17:01 _zhiqiu 阅读(1994) 评论(7) 推荐(0) 编辑
摘要: node child_process文档 child_process.exec(command[, options][, callback]) command <string> The command to run, with space-separated arguments. options < 阅读全文
posted @ 2018-06-01 10:40 _zhiqiu 阅读(841) 评论(0) 推荐(0) 编辑
摘要: sudo apt-get install libappindicator3-dev -y 阅读全文
posted @ 2018-05-31 23:04 _zhiqiu 阅读(7) 评论(0) 推荐(0) 编辑
摘要: Electron ipcRenderer 模块 ipcRenderer 模块是一个 EventEmitter 类的实例. 它提供了有限的方法,你可以从渲染进程向主进程发送同步或异步消息. 也可以收到主进程的响应. 发送消息 ipcRenderer 模块有如下方法来发送消息: ipcRenderer. 阅读全文
posted @ 2018-05-17 14:40 _zhiqiu 阅读(12340) 评论(1) 推荐(2) 编辑
摘要: 需求说明 有多个switch组件 需要知道switch的状态 表格中当前行(scope.row)的数据 问题描述 官方文档中对switch中change的描述: 目前能得到switch的状态值,但是无法得到change回调中第二个形参的值 解决方法: change回调函数默认形参的实参是$event 阅读全文
posted @ 2018-05-09 11:01 _zhiqiu 阅读(8353) 评论(0) 推荐(1) 编辑
摘要: 使用xlxs-js库 function exportExcel () { var wb = XLSX.utils.table_to_book(document.querySelector('.my-el-table')) var wbout = XLSX.write(wb, { bookType: 阅读全文
posted @ 2018-05-03 11:05 _zhiqiu 阅读(1882) 评论(0) 推荐(0) 编辑
摘要: box-shadow:0px 0px 0px rgba(0,0,0,0); -webkit-appearance:none; 阅读全文
posted @ 2018-03-30 17:59 _zhiqiu 阅读(1833) 评论(0) 推荐(0) 编辑
摘要: Yahoo!的 Exceptional Performance团队为改善 Web性能带来最佳实践。他们为此进行了一系列的实验、开发了各种工具、写了大量的文章和博客并在各种会议上参与探讨。最佳实践的核心就是旨在提高网站性能。原版猛戳:Best Practices for Speeding Up You 阅读全文
posted @ 2018-03-19 11:29 _zhiqiu 阅读(157) 评论(0) 推荐(0) 编辑
摘要: 安装步骤(必须已经安装过python) 1>curl https://bootstrap.pypa.io/get-pip.py -o get-pip.py 2>python get-pip.py 3>配置pip的环境变量(python的环境变量\Scripts\) 这是pip的官方网址 阅读全文
posted @ 2018-02-28 17:46 _zhiqiu 阅读(172) 评论(0) 推荐(0) 编辑
摘要: 微信支付之获取code, 1:访问下面的连接(自己拼) 2:去回调地址里拿code 阅读全文
posted @ 2018-02-24 10:04 _zhiqiu 阅读(3578) 评论(0) 推荐(0) 编辑
摘要: 也不知道出处 阅读全文
posted @ 2017-10-10 15:56 _zhiqiu 阅读(255) 评论(0) 推荐(0) 编辑
摘要: arch安装步骤 archlinux官方安装wiki 1、分区and格式化分区 (分区用fdisk,格式化分区用mkfs) 2、挂载分区 (mount命令) 3、安装archlinux base base-devel 先检测网路是否连接 dhcpcd 没有提示代表一切正常 安装arch base a 阅读全文
posted @ 2017-09-07 12:34 _zhiqiu 阅读(404) 评论(0) 推荐(0) 编辑
摘要: 身份证第18位校验码计算规则: 下面代码是javascript的实现; 校验为真返回true;否则返回false 阅读全文
posted @ 2017-08-28 20:51 _zhiqiu 阅读(827) 评论(0) 推荐(0) 编辑
摘要: Web Notifications API 使页面可以发出通知,通知将被显示在页面之外的系统层面上(通常使用操作系统的标准通知机制,但是在不同的平台和浏览器上的表现会有差异) 要显示一条通知,你需要先请求适当的权限。Web Notifications API 请求 权限有两种方式 1、Notific 阅读全文
posted @ 2017-08-02 16:31 _zhiqiu 阅读(345) 评论(0) 推荐(0) 编辑
摘要: 最新版edge也可以了(2018年8月10日16:27:36) 阅读全文
posted @ 2017-07-31 10:05 _zhiqiu 阅读(1703) 评论(0) 推荐(0) 编辑
摘要: $('目标元素').html(插入的内容) //设置tinymce编辑器的内容tinymce.get('目标元素').getContent() //获取tinymce编辑器的内容 阅读全文
posted @ 2017-07-27 14:44 _zhiqiu 阅读(8547) 评论(6) 推荐(0) 编辑
摘要: 不多说什么,直接上代码 使用方法:localhost:8080/download?dir='filedir'&name='filename',把这个直接放到a标签的href属性内就可以使用。 dir:文件路径 name:文件名称(带后缀) 阅读全文
posted @ 2017-05-28 15:56 _zhiqiu 阅读(3398) 评论(0) 推荐(0) 编辑
摘要: 1、数组去重 2、页面刷新前触发 阅读全文
posted @ 2017-05-12 16:12 _zhiqiu 阅读(202) 评论(0) 推荐(0) 编辑
摘要: 常见的正则表达式 数字:^[0-9]*$ n位的数字:^\d{n}$ 至少n位的数字:^\d{n,}$ m-n位的数字:^\d{m,n}$ 零和非零开头的数字:^(0|[1-9][0-9]*)$ 正数、负数、和小数:^(\-|\+)?\d+(\.\d+)?$ 有小数的正实数:^[0-9]+(.[0- 阅读全文
posted @ 2017-04-19 15:11 _zhiqiu 阅读(216) 评论(0) 推荐(0) 编辑
摘要: 平年: 2月-->28天 4,6,9,11月-->30天 1,3,5,7,8,10,12月-->31天 闰年: 2月-->29天 4,6,9,11月-->30天 1,3,5,7,8,10,12月-->31天 闰年的计算方式: 1、年份/100 2、如果 年份/100有余数 , 年份/4 没有余数 是 阅读全文
posted @ 2017-04-13 14:11 _zhiqiu 阅读(1320) 评论(0) 推荐(0) 编辑