摘要: js 冒泡事件 阻止冒泡 window.onload = function () { var oDiv1 = document.getElementById('div1'); var oDiv2 = document.getElementById('div2'); oDiv1.onclick = f 阅读全文
posted @ 2019-05-23 19:55 A影子放風箏 阅读(2716) 评论(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影子放風箏 阅读(1174) 评论(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影子放風箏 阅读(1361) 评论(0) 推荐(0) 编辑
摘要: vue Select 中< :label-in-value="true" @on-change="satusSelect"> satusSelect(val){ console.log(val); } 阅读全文
posted @ 2019-05-23 19:52 A影子放風箏 阅读(20563) 评论(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影子放風箏 阅读(166) 评论(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影子放風箏 阅读(361) 评论(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影子放風箏 阅读(6482) 评论(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影子放風箏 阅读(252) 评论(0) 推荐(0) 编辑
摘要: js 数组转字符串js 字符串转数组arr.join(",");String.split(","); 对象的所有keys Object.keys(val)对象的所有values Object.values(val) 阅读全文
posted @ 2019-05-23 19:47 A影子放風箏 阅读(3651) 评论(0) 推荐(0) 编辑
摘要: document.getElementsByName("spans")[index].style.color = "blue"; 阅读全文
posted @ 2019-05-23 19:46 A影子放風箏 阅读(215) 评论(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影子放風箏 阅读(639) 评论(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影子放風箏 阅读(666) 评论(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影子放風箏 阅读(1418) 评论(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影子放風箏 阅读(1912) 评论(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影子放風箏 阅读(1302) 评论(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影子放風箏 阅读(3132) 评论(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影子放風箏 阅读(159) 评论(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影子放風箏 阅读(333) 评论(0) 推荐(0) 编辑
摘要: 父层position:relative; 子层position:absolute;的话, 就是依照父层的边界进行定位的, 不然position:absolute 会逐层向上寻找设置了position:relative的元素边界, 直到body元素 阅读全文
posted @ 2019-05-23 19:39 A影子放風箏 阅读(114) 评论(0) 推荐(0) 编辑
摘要: background: linear-gradient(to bottom, #ffe5bc, #fff7eb, #ffe5bc); 阅读全文
posted @ 2019-05-23 19:38 A影子放風箏 阅读(111) 评论(0) 推荐(0) 编辑
// 侧边栏目录 // https://blog-static.cnblogs.com/files/douzujun/marvin.nav.my1502.css