会员
周边
新闻
博问
闪存
众包
赞助商
Chat2DB
所有博客
当前博客
我的博客
我的园子
账号设置
会员中心
简洁模式
...
退出登录
注册
登录
一个不认真的程序员
博客园
首页
新随笔
联系
订阅
管理
2022年4月1日
vue+canvas实现签名+横屏签名旋转
摘要: 1、HTML <template> <div class="body" :style="{height:height + 'px'}" @touchmove.prevent> <div class="canvas" ref="canvas"> </div> <div class="bottom">
阅读全文
posted @ 2022-04-01 11:05 请再检查一遍代码
阅读(1040)
评论(0)
推荐(0)
2019年12月12日
es6 合并object
摘要: list = Object.values(list) list.push(avg, total); list = Object.values(list) list.push(avg, total);
阅读全文
posted @ 2019-12-12 10:57 请再检查一遍代码
阅读(499)
评论(0)
推荐(0)
2019年8月13日
小程序排序,sort不能解决
摘要: js: function bubbleSort(a, fn) { for (var i = a.length - 1; i >= 1; i--) for (var j = 0; j < i; j++) if (fn(a[j], a[j + 1])) swapArray(a, j, j + 1); r
阅读全文
posted @ 2019-08-13 15:07 请再检查一遍代码
阅读(1953)
评论(0)
推荐(0)
求数组最大值
摘要: let arr = [3,2,4,1,8,6] let maxValue = Math.max.apply(null,arr); console.log(maxValue);
阅读全文
posted @ 2019-08-13 14:58 请再检查一遍代码
阅读(230)
评论(0)
推荐(0)
js合并两个数组方法
摘要: 例如: let a=[1,2,3]; let b=[4,5,6] 第一种方法 let c = a.concat(b); 第二种方法 for(let i in b){ a.push(b[i]) } 第三种办法 a.push.apply(a,b); 第四种办法 var newA = [...a,...b
阅读全文
posted @ 2019-08-13 14:55 请再检查一遍代码
阅读(30720)
评论(0)
推荐(0)
判断浏览器的版本
摘要: //低版本浏览器提示 if(navigator.appName == "Microsoft Internet Explorer" && navigator.appVersion .split(";")[1].replace(/[ ]/g,"")=="MSIE6.0") { alert("您正在使用低
阅读全文
posted @ 2019-08-13 14:45 请再检查一遍代码
阅读(573)
评论(0)
推荐(0)
PDF转PTT
摘要: https://smallpdf.com/cn/pdf-to-ppt
阅读全文
posted @ 2019-08-13 14:44 请再检查一遍代码
阅读(213)
评论(0)
推荐(0)
小程序异步问题
摘要: test: function () { let param = { Channel: "H5", ProductId: this.productId, Version: 70100 }; console.log(2); let url = "xxxxx"; return new Promise((r
阅读全文
posted @ 2019-08-13 14:43 请再检查一遍代码
阅读(285)
评论(0)
推荐(0)
vue+elementui 两个input利用model绑定且可以改变自己的值
摘要: <el-form-item label="名称1:"> <el-input v-model="form.title" placeholder=""></el-input> </el-form-item> <el-form-item label="名称2:"> <el-input v-model="f
阅读全文
posted @ 2019-08-13 11:58 请再检查一遍代码
阅读(5846)
评论(0)
推荐(0)
公告