摘要: iview-cli 项目、iView admin 跨域、代理问题解决方案 在webpack.dev.config.js文件中: 添加: devServer: { historyApiFallback: true, hot: true, inline: true, stats: { colors: t 阅读全文
posted @ 2018-06-04 17:38 街角的&守望 阅读(804) 评论(0) 推荐(0) 编辑
摘要: var orgnIdListValue=["0","2"]; function arrayField(a,b){ let arrayMes=[]; for(var i=0;i<a.length;i++){ arrayMes.push({[b]:a[i]}); } return arrayMes; } 阅读全文
posted @ 2018-06-11 17:56 街角的&守望 阅读(293) 评论(0) 推荐(0) 编辑
摘要: 许多研究发现,页面速度和访客的滞留时间,跳出率以及收入都有直接的关系。另外,谷歌的排名算法中也把页面加载速度作为其中一项考虑因素。因此,你网站的页面加载时间是至关重要的。从访问者的角度看,测试你的浏览器速度的一个很好的方法是清除你的浏览器缓存,然后加载页面。如下就有16种优化你页面的方法: 1、合并 阅读全文
posted @ 2018-05-23 14:47 街角的&守望 阅读(544) 评论(0) 推荐(0) 编辑
摘要: for循环中动态设置页面的图标或者字体颜色与循环中且套循环 :style="{'color':items.color}" 案例代码: html中 <div class="allFunction" v-for="(item,index ) in checksMes"> <div class="titM 阅读全文
posted @ 2018-05-18 14:41 街角的&守望 阅读(28004) 评论(0) 推荐(2) 编辑
摘要: e.currentTarget指的是注册了事件监听器的对象,而e.target指的是该对象里的子对象 html中 <div id="addBtn" v-on:click="checksBtn($event)" class="everyMes curs checkeds" title="查询"> <I 阅读全文
posted @ 2018-05-17 11:05 街角的&守望 阅读(401) 评论(0) 推荐(0) 编辑
摘要: iview中的事件和方法如下: 案例说明: html代码 <Tree :data="data4" @on-check-change="choiceAll" ref="tree4" show-checkbox multiple></Tree> data(){ data4: [ { title: 'pa 阅读全文
posted @ 2018-05-16 15:57 街角的&守望 阅读(2733) 评论(0) 推荐(0) 编辑
摘要: 实例 为 <div> 元素添加 class: document.getElementById("myDIV").classList.add("mystyle"); 定义和用法 classList 属性返回元素的类名,作为 DOMTokenList 对象。 该属性用于在元素中添加,移除及切换 CSS 阅读全文
posted @ 2018-05-14 17:06 街角的&守望 阅读(1911) 评论(0) 推荐(1) 编辑
摘要: JQUERY的父,子,兄弟节点查找方法 jQuery.parent(expr) 找父亲节点,可以传入expr进行过滤,比如$("span").parent()或者$("span").parent(".class") jQuery.parents(expr),类似于jQuery.parents(exp 阅读全文
posted @ 2018-05-14 16:58 街角的&守望 阅读(476) 评论(0) 推荐(0) 编辑
摘要: VUE中 html 中 <ul id="shoppingList" v-on:click="addClass($event)" class="iview-admin-draggable-list"> <li></li> </ul> 点击li时 js如下 <ul id="shoppingList" v 阅读全文
posted @ 2018-05-14 16:57 街角的&守望 阅读(4678) 评论(0) 推荐(0) 编辑
摘要: a,button,input{ -webkit-tap-highlight-color: rgba(0, 0, 0, 0); -webkit-user-modify: read-write-plaintext-only; } 可根据实际情况添加 outline: none; 或 box-shadow 阅读全文
posted @ 2018-05-03 18:14 街角的&守望 阅读(3829) 评论(0) 推荐(0) 编辑