自定义博客皮肤VIP专享

*博客头图:

格式为PNG、JPG,宽度*高度大于1920*100像素,不超过2MB,主视觉建议放在右侧,请参照线上博客头图

请上传大于1920*100像素的图片!

博客底图:

图片格式为PNG、JPG,不超过1MB,可上下左右平铺至整个背景

栏目图:

图片格式为PNG、JPG,图片宽度*高度为300*38像素,不超过0.5MB

主标题颜色:

RGB颜色,例如:#AFAFAF

Hover:

RGB颜色,例如:#AFAFAF

副标题颜色:

RGB颜色,例如:#AFAFAF

自定义博客皮肤

-+
  • 博客(12)
  • 收藏
  • 关注

原创 vue修改数据页面不重新渲染

【代码】vue修改数据页面不重新渲染。

2023-05-29 16:10:41 172

原创 canvas画弧形渐变进度条

canvas画弧形渐变进度条

2022-10-10 17:59:58 469

原创 swiper自定义dots样式后,轮播图出现晃动卡顿问题

swiper自定义dots样式后,轮播图出现晃动卡顿问题

2022-10-10 15:26:58 690

原创 小程序原生swiper中bindtransition监听滑动效果

wxml<view> <swiper next-margin="50rpx" previous-margin="54rpx" current="{{swiCurrent}}" bindchange="swiperChange" data-current="{{swiCurrent}}" interval="100" bindanimationfinish="bindanimationfinish" bindtransition="bindtransition" class..

2021-12-10 16:53:34 2111

原创 input type=“file”传相同名字的文件,onchage不调用

onClick={(event) => {event.persist();(event.target as HTMLInputElement).value = “”;}}

2021-09-26 16:56:40 158

原创 2021-09-07

FormData格式在console中打印FormDataFormDatalet newFormData = new FormData();newFormData.append(“location”, this.state.file);values.excelFile = newFormData;console.log(newFormData.get(“name”))console.log(newFormData.getAll(“name”))newFormData.forEach(value

2021-09-07 17:11:01 60

原创 vue-baberrage制作弹幕

vue-baberrage制作弹幕首先需要先安装插件npm install --save vue-baberrage在index.js中引用安装好的插件import { vueBaberrage } from 'vue-baberrage'Vue.use(vueBaberrage)然后在页面中直接引用就可以了<template> <div class="middle" :style="background"> <div class="baberra

2021-08-02 15:44:22 602

原创 vue动态更换路径名称

vue动态更换路径名称item.original = require(`assets/images/template_${item.index}.png`)注意:require中用`` 创建的字符串模板

2021-01-26 11:15:30 338

原创 vue中this.$refs有值,但无法获取ref的值

vue中this.$refs有值,但无法获取ref的值vue报错Cannot read property 'addEventListener' of null"vue报错Cannot read property ‘addEventListener’ of null"解决方法:查看当前div或者父级div是否存在v-if,如果存在,请改为 v-show...

2020-03-25 11:43:25 6130

原创 数组去重的方法

数组去重var ary = [24,12,10,4,5,3,7,9,10];var newAry = [];for(var i = 0;i<ary.length;i++){ var cur = ary[i]; if(newAry.indexOf(cur) === -1){ newAry.push(cur) }}console.log(newAry);var ary...

2019-08-10 16:52:08 85

原创 面试题(作用域 原型链 同步异步)

面试题(作用域 原型链 同步异步)(作用域 原型链 同步异步) 实现一个LazyMan,可以按照以下方式调用: 1) LazyMan(“Hank”)输出: Hi! This is Hank! 2) LazyMan(“Hank”).sleep(10).eat(“dinner”)输出 Hi! This is Hank! ...

2019-08-10 10:24:55 233

原创 js的执行顺序问题(setTimeout、promise、let)

答案:54132解析:这个延时0是为了让后面的代码先执行完毕因为js是单线程,自上而下的顺序执行的加上延时0就是为了,先执行后面的代码,执行结束后再执行延时的代码再看这两个promise是异步执行的函数,.then()是先执行之前的方法,执行结束后,再执行then()的内容,这样就防止了,某些时候我们没数据没获取到,方法执行结束了上面的这段就是先执行for循环里的内容,执行...

2018-11-29 17:20:22 628

空空如也

空空如也

TA创建的收藏夹 TA关注的收藏夹

TA关注的人

提示
确定要删除当前文章?
取消 删除