随笔分类 -  js

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

上一页 1 2 3 4 5 6 7 8 ··· 10 下一页