摘要: <template> <card> <el-popover placement="right" width="400" trigger="click" > <el-table ref="singleTable" :data="pinyinOptions" highlight-current-row 阅读全文
posted @ 2019-06-04 11:55 hello芳芳 阅读(2246) 评论(0) 推荐(0)
摘要: 1,需要导入两个js文件,一个tableExport.js,另一个是jquery.base64.js,前一个文件是导出数据和核心类库,后一个是为了避免导出中文时乱码的js文件,如果你导出的数据没有中文,可以不适用它。 说明:只能对table标签进行操作 2,导入以上两个js后,为下载按钮绑定事件,如 阅读全文
posted @ 2019-05-29 11:24 hello芳芳 阅读(10317) 评论(0) 推荐(0)
摘要: 安装 npm install pinyin-engine --save API new PinyinEngine(list, keys) 建立拼音索引。 参数: list {[string]|[Object]} 被索引的目标 keys {[string]} 可选。如果 list 为 Object,这 阅读全文
posted @ 2019-05-28 09:19 hello芳芳 阅读(1129) 评论(0) 推荐(0)
摘要: 安装npm install --save xlsx file-saver 两个插件的详细地址在下面 https://github.com/SheetJS/js-xlsxhttps://github.com/eligrey/FileSaver.js 代码部分(有注释解释说明) <template> < 阅读全文
posted @ 2019-05-27 11:26 hello芳芳 阅读(4351) 评论(0) 推荐(0)
摘要: 原生JS操作DOM使用mounted钩子函数,它表示页面一加载进来就执行函数里面的内容(和window.onload类似)1//html部分 编号:<input type="text" v-model='newId' id='inputId'>//vue对象var vm = new Vue({ el 阅读全文
posted @ 2019-05-24 10:04 hello芳芳 阅读(45253) 评论(0) 推荐(0)
摘要: <input v-focus type="text" name="search" ref="input" autofocus v-model="inputValue" maxlength="10" @input="handleOnInput()" class="search-inp" placeho 阅读全文
posted @ 2019-05-24 10:00 hello芳芳 阅读(22531) 评论(0) 推荐(0)
摘要: 参考https://www.npmjs.com/package/pinyin-match npm install pinyin-match --save const PinyinMatch = require('pinyin-match'); let test = '123曾经沧海难为水除却巫山不是 阅读全文
posted @ 2019-05-22 16:56 hello芳芳 阅读(4602) 评论(1) 推荐(0)
摘要: 首先我们先来看看官方介绍的用法: 将回调延迟到下次 DOM 更新循环之后执行。在修改数据之后立即使用它,然后等待 DOM 更新。 它跟全局方法 Vue.nextTick 一样,不同的是回调的 this 自动绑定到调用它的实例上。 理解: 1.总结来说, 假设我们更改了某个dom元素内部的文本,而这时 阅读全文
posted @ 2019-05-09 17:21 hello芳芳 阅读(246) 评论(0) 推荐(0)
摘要: 1.vue+iview后台管理模板 https://github.com/iview/iview-admin 2.vue+element 后台管理模板 https://github.com/PanJiaChen/vue-element-admin 阅读全文
posted @ 2019-05-05 14:51 hello芳芳 阅读(11831) 评论(1) 推荐(0)
摘要: ctrl+alt+L 格式化代码Ctrl+B 快速打开光标处的类或方法ctrl+/ 单行注释ctrl+shift+/块注释Ctrl+X 删除行Ctrl+D 复制行 Ctrl+F 仅在本页查找Ctrl+Shift+F从多个文件查找,可以自定义查找范围。Ctrl+R 替换文本Ctrl+N 查找类Ctrl 阅读全文
posted @ 2019-04-29 16:29 hello芳芳 阅读(8542) 评论(0) 推荐(0)