05 2018 档案
摘要:许多研究发现,页面速度和访客的滞留时间,跳出率以及收入都有直接的关系。另外,谷歌的排名算法中也把页面加载速度作为其中一项考虑因素。因此,你网站的页面加载时间是至关重要的。从访问者的角度看,测试你的浏览器速度的一个很好的方法是清除你的浏览器缓存,然后加载页面。如下就有16种优化你页面的方法: 1、合并
阅读全文
摘要:for循环中动态设置页面的图标或者字体颜色与循环中且套循环 :style="{'color':items.color}" 案例代码: html中 <div class="allFunction" v-for="(item,index ) in checksMes"> <div class="titM
阅读全文
摘要:e.currentTarget指的是注册了事件监听器的对象,而e.target指的是该对象里的子对象 html中 <div id="addBtn" v-on:click="checksBtn($event)" class="everyMes curs checkeds" title="查询"> <I
阅读全文
摘要:iview中的事件和方法如下: 案例说明: html代码 <Tree :data="data4" @on-check-change="choiceAll" ref="tree4" show-checkbox multiple></Tree> data(){ data4: [ { title: 'pa
阅读全文
摘要:实例 为 <div> 元素添加 class: document.getElementById("myDIV").classList.add("mystyle"); 定义和用法 classList 属性返回元素的类名,作为 DOMTokenList 对象。 该属性用于在元素中添加,移除及切换 CSS
阅读全文
摘要:JQUERY的父,子,兄弟节点查找方法 jQuery.parent(expr) 找父亲节点,可以传入expr进行过滤,比如$("span").parent()或者$("span").parent(".class") jQuery.parents(expr),类似于jQuery.parents(exp
阅读全文
摘要:VUE中 html 中 <ul id="shoppingList" v-on:click="addClass($event)" class="iview-admin-draggable-list"> <li></li> </ul> 点击li时 js如下 <ul id="shoppingList" v
阅读全文
摘要:a,button,input{ -webkit-tap-highlight-color: rgba(0, 0, 0, 0); -webkit-user-modify: read-write-plaintext-only; } 可根据实际情况添加 outline: none; 或 box-shadow
阅读全文

浙公网安备 33010602011771号