摘要: electron中默认带有顶部菜单栏,有时候我们的应用不需要。 再main.js文件中设置 const electron = require('electron') // Keep a global reference of the window object, if you don't, the 阅读全文
posted @ 2018-06-21 13:46 亦心晗 阅读(33858) 评论(0) 推荐(2) 编辑
摘要: 如果只想监听b中的value,怎么办 方法一: 方法二,借助computed 阅读全文
posted @ 2018-06-14 19:34 亦心晗 阅读(16163) 评论(0) 推荐(4) 编辑
摘要: {{num | NumFormat}}元 阅读全文
posted @ 2018-06-08 10:56 亦心晗 阅读(5010) 评论(1) 推荐(0) 编辑
摘要: // 复制功能 copyUrl() { var Url = document.getElementById('biao') Url.select() // 选择对象 document.execCommand('Copy') // 执行浏览器复制命令 alert('success', '已复制好,可贴粘!') }, 阅读全文
posted @ 2018-05-11 14:11 亦心晗 阅读(132) 评论(0) 推荐(0) 编辑
摘要: 1.vue中数据接收成功,页面渲染失败。代码如下 经过查找资料修改代码为 或是 原因是: 由于 JavaScript 的限制, Vue 不能检测以下变动的数组: 但是可以通过set和push,splice操作数组 阅读全文
posted @ 2018-04-26 19:48 亦心晗 阅读(3566) 评论(0) 推荐(0) 编辑
摘要: 1.如果ul下有很多li,需要在一行显示,并且设置margin。但是通常要取消第一个li的margin-left。使用:first-child有的浏览器不兼容。 适用场景:单行左对齐,有间距 2.多行文字垂直居中 4.:after伪类+content 让大小不固定图片垂直居中 让图片垂直居中一直没有 阅读全文
posted @ 2018-04-11 11:25 亦心晗 阅读(161) 评论(0) 推荐(0) 编辑
摘要: 1.table内容展示 2.编辑 3.删除 4.table中使用checkbox,判断选中状态 在table中加入@selection-change="selectionChange" 阅读全文
posted @ 2018-04-03 17:06 亦心晗 阅读(24979) 评论(0) 推荐(0) 编辑
摘要: //图片预加载 (function ($) { //imgs图片数组,参数 function PreLoad(imgs,options){ //传进来的如果是字符串,转成数组 this.imgs = (typeof imgs === 'string') ? [imgs] :imgs; //将options和default融合生成一个... 阅读全文
posted @ 2018-01-22 13:08 亦心晗 阅读(144) 评论(0) 推荐(0) 编辑
摘要: <!DOCTYPE html> <html lang="en"> <head> <meta charset="UTF-8"> <title>Document</title> <script src="js/jquery-2.1.4.min.js"></script> <style> #scrollD 阅读全文
posted @ 2018-01-17 15:33 亦心晗 阅读(663) 评论(0) 推荐(0) 编辑
摘要: 阅读全文
posted @ 2017-12-14 17:01 亦心晗 阅读(3818) 评论(0) 推荐(0) 编辑