###基于vue2的垂直跑马灯(广播消息轮播组件) npm install vue-marquee new Vue({ el: 'body', data: function(){ return { listData: ['item1', 'item2', 'item3'] } }, componen ...
分类:
其他好文 时间:
2021-03-09 13:56:40
阅读次数:
0
一 事件注册 二 事件处理 //2 事件处理 on() 绑定事件 $("div").on({ click:function () { $(this).css('background','red'); },//绑定事件1 mouseenter:function () { $(this).css('ba ...
分类:
其他好文 时间:
2021-03-09 13:25:43
阅读次数:
0
问题描述: IE 浏览器,不是特别兼容ES6 代码,比如:Array.from 在ie浏览器中,直接报错 解决办法: 找到代码,直接在代码上面加上即可 if(!Array.from){ Array.from = function (el) { return Array.apply(this, el) ...
分类:
其他好文 时间:
2021-03-09 13:25:13
阅读次数:
0
该函数比较两个ifcaxis2位置并确保它们是相同的(具有epsilon精度因子)。 IFC2x2中的新函数 EXPRESS Specification FUNCTION IfcSameAxis2Placement (ap1, ap2 : IfcAxis2Placement; Epsilon : R ...
分类:
其他好文 时间:
2021-03-09 12:59:19
阅读次数:
0
20, '男'); console.log(per1.name) (4) 构造函数形式创建: function Person(name,age,family) { this.name = name; this.age = age; this.family = family; this.say = f ...
分类:
其他好文 时间:
2021-03-08 14:19:19
阅读次数:
0
分割回文串 回溯算法 求所有解,所以使用回溯算法来枚举所有的解。代码如下 class Solution { /** * @param String $s * @return String[][] */ function partition($s) { $res = []; $this->backtr ...
分类:
其他好文 时间:
2021-03-08 14:15:59
阅读次数:
0
1、借助<input type="file" />标签上传PDF文件; 2、创建FileReader方法,var reader = new FileReader(); 3、执行reader.onload = function(){console.log(reader.result)}; 4、执行re ...
分类:
其他好文 时间:
2021-03-08 14:06:20
阅读次数:
0
首先对图片懒加载的函数的封装 1 var n=0;//存储图片的位置,避免每次都从第一张图片进行加载 2 function lazyload(imgs) { 3 //获取可视区的高度 4 var height = document.documentElement.clientHeight 5 //获 ...
分类:
编程语言 时间:
2021-03-08 13:50:25
阅读次数:
0
var index=1; left.onclick=function () { index++ if (index>3) { index=0 } one.style.left=-index*800+"px" } right.onclick=function () { index-- if (inde ...
分类:
其他好文 时间:
2021-03-08 13:34:42
阅读次数:
0
export function getreportlook (parameter) { return request({ url: api.reportlook, method: 'get', params: parameter }) } // 朋友圈详情 export function getse ...
分类:
其他好文 时间:
2021-03-08 13:32:04
阅读次数:
0