varu=navigator.userAgent;varisAndroid=u.indexOf('Android')1u.indexOf('Adr')1;//android终端varisiOS=!!u.match(/\(i^;+;(U;)?CPU.+MacOSX/);//ios终端
css 增加模糊遮罩效果
将分钟数转为小时分钟
vue 将数组转为百分比
functiongettotal(listdata){lettotal=0listdata.forEach((type)={total=total+type});returntotal}
chrome和Safari.element::webkitscrollbar{width:0}IE10+.element{msoverflowstyle:none;}Firefox.element{overflow:mozscrollbarsnone;}
css
let width = this.$refs.echarts1.$el.offsetWidth let height = this.$refs.echarts1.$el.offsetHeightjs部分div部分<div ref="echarts1"></div>
<div class="profiledetail scroll"> <el-backtop target='.profiledetail'></el-backtop> <headtop @baogao="baogao" @getdata="getdata"></headtop> <div class="socx"
Copyright © 2005-2024 51CTO.COM 版权所有 京ICP证060544号