摘要: js 冒泡事件 阻止冒泡 window.onload = function () { var oDiv1 = document.getElementById('div1'); var oDiv2 = document.getElementById('div2'); oDiv1.onclick = f 阅读全文
posted @ 2019-05-23 19:55 A影子放風箏 阅读(2740) 评论(0) 推荐(0)
摘要: text-overflow: ellipsis; white-space: nowrap; overflow: hidden; overflow: hidden; white-space: nowrap; display: -webkit-box; 阅读全文
posted @ 2019-05-23 19:54 A影子放風箏 阅读(1183) 评论(0) 推荐(0)
摘要: js 动态添加元素 删除元素逻辑 var obox=document.getElementById("box"); oadd.onclick=function(){ var odiv=document.createElement("div"); obox.appendChild(odiv); } o 阅读全文
posted @ 2019-05-23 19:53 A影子放風箏 阅读(1375) 评论(0) 推荐(0)
摘要: vue Select 中< :label-in-value="true" @on-change="satusSelect"> satusSelect(val){ console.log(val); } 阅读全文
posted @ 2019-05-23 19:52 A影子放風箏 阅读(20583) 评论(0) 推荐(0)
摘要: js两个数组去重 (对象) for (var i = 0; i < arr1.length; i++) { var flag = 1; for (var j = 0; j < arr2.length; j++) { if (arr2[j].name == arr1[i].name) { flag = 阅读全文
posted @ 2019-05-23 19:51 A影子放風箏 阅读(178) 评论(0) 推荐(0)
摘要: js 数组全等(对象) if(this.eqOrNotEq(arr)){} eqOrNotEq(arr) { return !arr.some(function(value, index) { return value.useStatus !== arr[0].useStatus; });} 阅读全文
posted @ 2019-05-23 19:51 A影子放風箏 阅读(380) 评论(0) 推荐(0)
摘要: 数组取对象 var arr1 = [ { id: "1", name: "one", age: "one" }, { id: "2", name: "two", age: "two" }, { id: "3", name: "three", age: "three" }, { id: "4", na 阅读全文
posted @ 2019-05-23 19:50 A影子放風箏 阅读(6500) 评论(0) 推荐(0)
摘要: vue 验证 <Form :model="formModel" label-position="center" :label-width="90" ref="modelForm" :rules="rules"> rules: { inspectCycleValue: [ { validator: v 阅读全文
posted @ 2019-05-23 19:48 A影子放風箏 阅读(258) 评论(0) 推荐(0)
摘要: js 数组转字符串js 字符串转数组arr.join(",");String.split(","); 对象的所有keys Object.keys(val)对象的所有values Object.values(val) 阅读全文
posted @ 2019-05-23 19:47 A影子放風箏 阅读(3687) 评论(0) 推荐(0)
摘要: document.getElementsByName("spans")[index].style.color = "blue"; 阅读全文
posted @ 2019-05-23 19:46 A影子放風箏 阅读(222) 评论(0) 推荐(0)
摘要: 正则 -180 到180 小数点后无限位/^0$|^-?0\.\d*[1-9]$|^-?[1-9](\.\d*[1-9])?$|^-?[1-9]\d(\.\d*[1-9])?$|^-?1[0-7]\d(\.\d*[1-9])?$|^-?180$/正则 -180 到180 小数点后有限位/^0$|^- 阅读全文
posted @ 2019-05-23 19:46 A影子放風箏 阅读(667) 评论(0) 推荐(0)
摘要: title 设置name="peo" title="" v-on:mouseenter="peoAndCarHover(item.signStatus,'peo',index)" 无index时 title mouseHover(tit) { var titlename = document.get 阅读全文
posted @ 2019-05-23 19:45 A影子放風箏 阅读(675) 评论(0) 推荐(0)
摘要: vue Table@on-selection-change="test" 已选中项数据 test(selection){} <Table :data="tableData" :columns="tableColunms" class="innerTable" @on-selection-change 阅读全文
posted @ 2019-05-23 19:44 A影子放風箏 阅读(1476) 评论(1) 推荐(0)
摘要: 属性js setAttribute document.getElementsByName("test")[0].setAttribute("src", "../img/jia.png"); jquery attr $("#id").attr("src", "../img/jia.png"); 阅读全文
posted @ 2019-05-23 19:43 A影子放風箏 阅读(1953) 评论(0) 推荐(0)
摘要: vue select 多选 验证 <FormItem :prop="'formList.'+index+'.name'" label="姓名" :rules="{ required: true, type: 'array', min: 1, message: '输入框不能为空',trigger: ' 阅读全文
posted @ 2019-05-23 19:42 A影子放風箏 阅读(1313) 评论(1) 推荐(0)
摘要: 验证时间范围 type="daterange" <DatePicker class="formItem" :size="size" v-model="item.transferTerm" disabled type="daterange" placement="bottom" :options="d 阅读全文
posted @ 2019-05-23 19:41 A影子放風箏 阅读(3155) 评论(0) 推荐(0)
摘要: var txt = '{"name":"ysx","url":"ysx.com","age":"42"}';字符串转对象直接量 var obj = JSON.parse(txt); 同于 eval("("+txt+")"); javascript内置的eval()函数 对象转字符串 JSON.str 阅读全文
posted @ 2019-05-23 19:40 A影子放風箏 阅读(180) 评论(0) 推荐(0)
摘要: function CompareDate(t1,t2) { var date = new Date(); var a = t1.split(":"); var b = t2.split(":"); return date.setHours(a[0],a[1]) > date.setHours(b[0 阅读全文
posted @ 2019-05-23 19:39 A影子放風箏 阅读(347) 评论(0) 推荐(0)
摘要: 父层position:relative; 子层position:absolute;的话, 就是依照父层的边界进行定位的, 不然position:absolute 会逐层向上寻找设置了position:relative的元素边界, 直到body元素 阅读全文
posted @ 2019-05-23 19:39 A影子放風箏 阅读(126) 评论(0) 推荐(0)
摘要: background: linear-gradient(to bottom, #ffe5bc, #fff7eb, #ffe5bc); 阅读全文
posted @ 2019-05-23 19:38 A影子放風箏 阅读(121) 评论(0) 推荐(0)
摘要: (1)//数组对象方法排序: function sortByKey(array,key){ return array.sort(function(a,b){ var x=a[key]; var y=b[key]; return ((x<y)?-1:((x>y)?1:0)); });}(2)conso 阅读全文
posted @ 2019-05-23 19:38 A影子放風箏 阅读(130) 评论(0) 推荐(0)
摘要: openlayers loaders方式加载 let layerVector = new ol.layer.Vector({ source : new ol.source.Vector({ loader: function(extent, resolution, projection) { cons 阅读全文
posted @ 2019-05-23 19:37 A影子放風箏 阅读(1289) 评论(0) 推荐(0)
摘要: idea 代理上网 浏览器能够上网,idea无法下载jar 浏览器无法上网则配置浏览器代理 start // 浏览器代理完毕 idea 配置 file - settings - > setting 配置http proxy // setting.xml添加 <proxies> <!-- proxy 阅读全文
posted @ 2019-05-23 19:35 A影子放風箏 阅读(1793) 评论(0) 推荐(0)
摘要: thunder://QUFodHRwOi8veHoyLjgxMDg0MC5jb20vY25fd2luZG93c18xMF9jb25zdW1lcl9lZGl0aW9uc192ZXJzaW9uXzE4MDNfdXBkYXRlZF9tYXJjaF8yMDE4X3g2NF9kdmRfMTIwNjM3NjYu 阅读全文
posted @ 2019-05-23 19:29 A影子放風箏 阅读(722) 评论(0) 推荐(0)
摘要: vue接口 写死的 RoleOfUserOrgRef: function ({ commit }, param) { return new Promise((resolve) => { $axios.post(`${process.env.API.stsURL}/iscAppOrgUserRelat 阅读全文
posted @ 2019-05-23 19:28 A影子放風箏 阅读(574) 评论(0) 推荐(0)
摘要: // startvue新版脚手架 //卸载旧版本npm uninstall vue-cli -g cnpm install -g @vue/cli或yarn global add @vue/cli //新版本 vue --versioncnpm install webpack -g e:cd E:\ 阅读全文
posted @ 2019-05-23 19:22 A影子放風箏 阅读(396) 评论(0) 推荐(0)
摘要: // 拖拽 插件 cnpm install vuedraggableimport draggable from 'vuedraggable' <draggable v-model="tags" :move="getdata" @update="datadragEnd"> <transition-gr 阅读全文
posted @ 2019-05-23 19:19 A影子放風箏 阅读(4505) 评论(0) 推荐(0)
摘要: 安装 安装openlayers安装指定包安装openlayersVUE中的地图import ol from "openlayers";import "openlayers/dist/ol.css"; cnpm install openlayers --save 安装jquery cnpm insta 阅读全文
posted @ 2019-05-23 19:18 A影子放風箏 阅读(206) 评论(0) 推荐(0)
摘要: vue 安装图片查看器插件安装cnpm install v-viewer引用 import 'viewerjs/dist/viewer.css' import Viewer from 'v-viewer' import Vue from 'vue' Vue.use(Viewer)用法 render函 阅读全文
posted @ 2019-05-23 19:16 A影子放風箏 阅读(625) 评论(0) 推荐(0)
摘要: vue引入外部jsimport { TrackLine } from "../../../../../static/js/trajectory.js";import { initMap } from "../../../../../static/js/initMap.js"; 写法参照js 文件夹内 阅读全文
posted @ 2019-05-23 19:15 A影子放風箏 阅读(678) 评论(0) 推荐(0)
摘要: Vue自定义指令 <div id="app"> <input type="text" v-focus> </div> 全局注册 Vue.directive{'focus',{ //指令选项 //指令调用,元素插入父节点时调用v-focus inserted: function(el){ //聚焦元素 阅读全文
posted @ 2019-05-23 19:14 A影子放風箏 阅读(200) 评论(0) 推荐(0)
摘要: .py base CGI (Common Gateway Interface) 通用网关接口,它是一段程序,运行在服务器上如:HTTP服务器,提供同客户端HTML页面的接口 测试 import doctest import unittest 性能差异度量 from timeit import Tim 阅读全文
posted @ 2019-05-23 19:12 A影子放風箏 阅读(223) 评论(0) 推荐(0)
摘要: http://weilin.me/ol3-primer/ch03/03-01.html#http://weilin.me/ol3-primer/ //地址http://openlayers.org/ //OpenLayers官网 vue安装自定义坐标系npm install proj4 import 阅读全文
posted @ 2019-05-23 19:11 A影子放風箏 阅读(725) 评论(0) 推荐(0)
摘要: Node.js 连接 MySQL var mysql = require('mysql'); var connection = mysql.createConnection({ host : 'localhost', user : 'root', password : '123456', port: 阅读全文
posted @ 2019-05-23 19:11 A影子放風箏 阅读(215) 评论(0) 推荐(0)
摘要: create (:患者)-[rl:likes]-> (dept:Dept ) ///////////////关系 (STARTNODE)MATCH (video1:YoutubeVideo1)-[movie:ACTION_MOVIES]->(video2:YoutubeVideo2) RETURN 阅读全文
posted @ 2019-05-23 19:10 A影子放風箏 阅读(377) 评论(1) 推荐(0)
摘要: 条件[ysx=JQ] 所有含有 id 属性的 div 元素 $("div[id]") 所有标题加上背景色 $(":header").css("background", "#EEE");比2小 行 $("tr:lt(2)")第二行 $("tr:eq(1)") table表格的1、3、5...行 2、4 阅读全文
posted @ 2019-05-23 19:07 A影子放風箏 阅读(271) 评论(0) 推荐(0)
摘要: 圆<circle cx="x" cy="y" r="r" style="stroke:black;fill:none">线 x1 y1 一个点 x2 y2 第二个点<line x1="75" y1="95" x2="135" y2="85" style="stroke:black;"><line x 阅读全文
posted @ 2019-05-23 19:06 A影子放風箏 阅读(167) 评论(0) 推荐(0)
摘要: showBtn :class="{getInput:showBtn}"v-if="showBtn" showBtn: true, this.showBtn = false; this.showBtn == true JSON.parse('{"p": 5}', function(k, v) { do 阅读全文
posted @ 2019-05-23 19:05 A影子放風箏 阅读(251) 评论(0) 推荐(0)
摘要: runoob 渐进色 background: linear-gradient(to bottom right, #ffe5bc, #fff7eb, #ffe5bc); button 样式 .button { background-color: #4CAF50; /* Green */ border: 阅读全文
posted @ 2019-05-23 19:04 A影子放風箏 阅读(177) 评论(0) 推荐(0)
摘要: WebSocket - 未完 省服务器资源和带宽,并且能够更实时地进行通讯 ;tcp协议 var Socket = new WebSocket(url, [protocol] ); 第一个参数 url, 指定连接的 URL。第二个参数 protocol 是可选的,指定了可接受的子协议 服务器发送事件 阅读全文
posted @ 2019-05-23 19:03 A影子放風箏 阅读(121) 评论(0) 推荐(0)
摘要: // JQ $(function(){$(div').bind('mouseout mouseover', function () {// 移入和移出分别执行一次alert('bind 可以绑定多重事件! ')});}); $(function(){$('div').unbind(); //删除当前 阅读全文
posted @ 2019-05-23 19:02 A影子放風箏 阅读(132) 评论(0) 推荐(0)
摘要: 1 DOCTYPE有什么作用?标准模式与混杂模式如何区分?它们有何意义? 告诉浏览器使用哪个版本的HTML规范来渲染文档。DOCTYPE不存在或形式不正确会导致HTML文档以混杂模式呈现。标准模式(Standards mode)以浏览器支持的最高标准运行;混杂模式(Quirks mode)中页面是一 阅读全文
posted @ 2019-05-23 17:34 A影子放風箏 阅读(191) 评论(0) 推荐(0)
// 侧边栏目录 // https://blog-static.cnblogs.com/files/douzujun/marvin.nav.my1502.css