随笔分类 - js
摘要:html: <canvas style="position:fixed;z-index:-1;left:0;top:0;min-width:100vw;min-height:100vh;" width="9600" height="2700"></canvas> js: <script> //粒子动
阅读全文
摘要:<li v-for="(item, index) in 15" @click="clickcategory(index)" :class="{ active: categoryIndex == index }" > {{ index }} </li> return { categoryIndex:
阅读全文
摘要:<template> <div :class="className" :style="{height:height,width:width}"/> </template> <script> import echarts from 'echarts' export default { props: {
阅读全文
摘要:官方有个属性设置poster 图片。但是失效 无奈。强行js修改 <video-player ref="videoPlayerHls" :playsinline="true" :options="videoOption" @error="errors($event)" class="video-pl
阅读全文
摘要:var monitorEntity = viewer.entities.add({ name: "video", position: Cesium.Cartesian3.fromDegrees(109.44, 32.11,30.0), point: { //点 pixelSize: 0, Heigh
阅读全文
摘要:<template> <div class="container"> <div class="top"> <div class="addr"> <svg-icon icon-class="location" style="width: 16px; height: 16px" />{{ dingAdd
阅读全文
摘要:来自:https://blog.csdn.net/qq_39378657/article/details/107550663 侵删 踩坑总结本来是非常简单的一个报错。正常情况下,按照网上的方法就可以解决问题。 但是我尝试了使用代理、换源、重装node.js(但是npm的配置参数没变),都没有解决问题
阅读全文
摘要://去重 if ( (this.selectPeopleList != null) & (this.selectPeopleList.length != 0) ) { let arrId = []; let arrName = []; this.selectPeopleList.map((item)
阅读全文
摘要:<template> <div> <bg-popout :isShow.sync="isShowPermissionTree" class="dialog-wrap" width="50" height="65" style="position: fixed;left: 0;top: 0;botto
阅读全文
摘要:原来的格式: dataObj: [ { id: 1, pattern: "白天模式", upTime: "08:00", downTime: "18:00", notificationMethod: 1, modelUrgency: ["1", "2", "3", "4"], }, { id: 2,
阅读全文
摘要:1.选择时间范围的时候 //此处是循环表单,v-for = item in objArr objArr: [ { id: 1, pattern: "白天模式", upTime: "08:00", downTime: "18:00", notificationMethod: 1, modelUrgen
阅读全文
摘要:<template> <div class="wap-wrap"> <h1>复制WAP链接</h1> <div class="input-box"> <Input disabled search v-model="inputData" enter-button="复制链接" @click.nativ
阅读全文
摘要://判断浏览器类型 myBrowser() { var userAgent = navigator.userAgent; //取得浏览器的userAgent字符串 var isOpera = userAgent.indexOf("Opera") > -1; if (isOpera) { return
阅读全文
摘要:来自:https://juejin.cn/post/6903852199311310862 侵删 数组拷贝经常被误解,但这并不是因为拷贝过程本身,而是因为缺乏对 JS 如何处理数组及其元素的理解。JS 中的数组是可变的,这说明在创建数组之后还可以修改数组的内容。这意味着要拷贝一个数组,咱们不能简单地
阅读全文
摘要://时间转换 changeTime(time) { //time 为 '2020-06-15T07:23:17.000+0000' let time2 = this.myTime(time); let time3 = this.formatDateTime(time2); return time3;
阅读全文
摘要:<template> <div class="main-wrapper"> <el-col :span="12"> <el-upload v-if="collectData.isCustom==1" class="upload-demo" :action="uploadUrl" :headers="
阅读全文
摘要:this.dataView = []; if (data.dataView && data.dataView != null) { let dataViewArr = JSON.parse(data.dataView); for (var key in dataViewArr) { this.dat
阅读全文
摘要:<FormItem label="入库时间:" prop="useTime"> <DatePicker class="input-width" type="datetime" v-model="formValidate.useTime" placeholder="请选择入库时间" style="wi
阅读全文
摘要:ruleValidate: { city: [ { type:'number', // 添加验证类型 required: true, message: '请选择城市', trigger: 'change' } ] }
阅读全文
摘要:<template> <div class="hello"> <div class="core"> <div class="abs-zone" v-if="editZoneDisplayBoolean"> <div class="box"> <Input placeholder="Enter som
阅读全文