会员
众包
新闻
博问
闪存
赞助商
HarmonyOS
Chat2DB
所有博客
当前博客
我的博客
我的园子
账号设置
会员中心
简洁模式
...
退出登录
注册
登录
博客园
园子
首页
新随笔
联系
管理
订阅
上一页
1
2
3
4
5
6
7
8
9
···
14
下一页
2022年4月16日
webRTC获取约束
摘要: webRTC获取约束在webRTC中,常用的视频约束有: widthheightaspectRatio:宽高比frameRatefacingMode:摄像头翻转(前后摄像头)(这个配置主要是对于移动端来说,因为浏览器只有前置摄像头)resizeMode:是否进行剪裁而常用的音频约束有: volume
阅读全文
posted @ 2022-04-16 09:30 诡道也
阅读(103)
评论(0)
推荐(0)
2022年4月13日
创建项目
摘要: 确保nodejs.cn已经安装好判断是否安装好node -v(检查版本号)npm -v (检查是否安装npm) npm淘宝镜像npm install -g cnpm --registry=https://registry.npm.taobao.org(如果没有安装淘宝镜像,后面的命令把cnpm换成n
阅读全文
posted @ 2022-04-13 10:38 诡道也
阅读(56)
评论(0)
推荐(0)
2022年3月31日
vue 实现数字滚动 数字 动态滚动
摘要: <template> <div class="centerContent"> <!-- 数字滚动 --> <div class="chartNum"> <div class="box-item"> <li :class="{ 'number-item': !isNaN(item), 'mark-it
阅读全文
posted @ 2022-03-31 15:15 诡道也
阅读(1343)
评论(0)
推荐(0)
修改this 指向 之bind
摘要: <button>点击</button>//定义按钮<script> var btn=document.querySelector("button");//获取到按钮 btn.onclick=function(){//绑定点击事件 this.disabled=true;//此时的this指向调用者的本
阅读全文
posted @ 2022-03-31 09:46 诡道也
阅读(110)
评论(0)
推荐(0)
2022年3月29日
element ui 中 禁止输入空格 el-autocomplete
摘要: @keydown.native="trimLR" trimLR(e) { console.log(e.keyCode); if (e.keyCode == 32) { e.returnValue = false; } },
阅读全文
posted @ 2022-03-29 13:48 诡道也
阅读(385)
评论(0)
推荐(0)
input,el-autocomplete 框限制输入长度
摘要: <el-input placeholder="请输入" @input="inputChange" type="number" v-model="codeForm.phoneNum" autocomplete="off"></el-input> inputChange(value) { if (val
阅读全文
posted @ 2022-03-29 13:47 诡道也
阅读(1103)
评论(0)
推荐(0)
2022年3月24日
vue项目h5手机上打开控制台,放在index.htm
摘要: <script src="https://cdn.bootcss.com/vConsole/3.2.0/vconsole.min.js"></script><script> // 初始化 var vConsole = new VConsole();</script>
阅读全文
posted @ 2022-03-24 09:38 诡道也
阅读(189)
评论(0)
推荐(0)
2022年2月24日
添加和删除或指定远程仓库地址
摘要: 添加或指定远程仓库地址 git remote set-url origin "https://..." git config remote.origin.url "https://..." 删除 git remote rm origin
阅读全文
posted @ 2022-02-24 09:12 诡道也
阅读(38)
评论(0)
推荐(0)
2022年1月10日
navigator.mediaDevice
摘要: navigator.mediaDevices.enumerateDevices().then(devicelist => { // audiooutput 扬声器 // audioinput 麦克风 // audiooutput 摄像 console.log(devicelist) }).catch
阅读全文
posted @ 2022-01-10 18:12 诡道也
阅读(183)
评论(0)
推荐(0)
p2p 通话技术 打电话 打视频 占用性能
摘要: onmessage(e) { const json = JSON.parse(e.data); const description = json.message; toUserId = json.userId; switch (description.type) { case "connect":
阅读全文
posted @ 2022-01-10 14:50 诡道也
阅读(69)
评论(0)
推荐(0)
上一页
1
2
3
4
5
6
7
8
9
···
14
下一页
公告