上一页 1 2 3 4 5 6 7 8 ··· 20 下一页
摘要: event.preventDefault cloudBtn.addEventListener('click', (event) => { event.preventDefault(); }, true) 阅读全文
posted @ 2021-09-22 16:33 霓裳依旧 阅读(34) 评论(0) 推荐(0)
摘要: HTML DOM querySelector() 方法 document.querySelector('.btn').classList.add('show') document.querySelector('.begin').style = 'display:none;' 阅读全文
posted @ 2021-09-22 16:27 霓裳依旧 阅读(1103) 评论(0) 推荐(0)
摘要: https://cloud.tencent.com/document/product/454/7946 造成播放端卡顿的原因主要有三种: 原因1:推流帧率太低如果主播端手机性能较差,或者有很占 CPU 的后台程序在运行,可能导致视频的帧率太低。正常情况下 FPS 达到每秒15帧以上的视频流才能保证观 阅读全文
posted @ 2021-09-13 15:26 霓裳依旧 阅读(1531) 评论(0) 推荐(0)
摘要: 关于Vue.use()详解 阅读全文
posted @ 2021-09-10 17:45 霓裳依旧 阅读(454) 评论(0) 推荐(0)
摘要: javascript事件节流和防抖 阅读全文
posted @ 2021-07-30 10:45 霓裳依旧 阅读(22) 评论(0) 推荐(0)
摘要: HLS:网络协议HTTP M3U8索引文件 延迟很大 播放协议采用的是 HLS(m3u8)协议,并感觉延迟较大,这个是正常的。 HLS 协议是苹果主推的基于大颗粒的 TS 分片的流媒体协议,每个分片的时长通常在5秒以上,分片数量一般为3个 - 4个,所以总延迟在10秒 - 30秒左右。只能通过适当减 阅读全文
posted @ 2021-02-09 17:47 霓裳依旧 阅读(344) 评论(0) 推荐(0)
摘要: var name = "The Window"; var object = { name : "My Object", getNameFunc : function(){ return function(){ return this.name; }; } }; alert(object.getNam 阅读全文
posted @ 2021-01-26 10:48 霓裳依旧 阅读(52) 评论(0) 推荐(0)
摘要: 什么是同步加载与异步加载 什么是同步加载 <script src="js/jQuery.js"></script> 同步模式,又称阻塞模式,会阻止浏览器的后续处理,停止了后续的解析,因此停止了后续的文件加载(如图像)、渲染、代码执行。 js 之所以要同步执行,是因为 js 中可能有输出 docume 阅读全文
posted @ 2021-01-19 15:31 霓裳依旧 阅读(757) 评论(0) 推荐(0)
摘要: 两个span标签再同一行,高度不一样的解决办法【入坑篇】 解决方案: 1.span的样式中添加:vertical-align:middle; 或 2.父元素样式中添加:.class_name{ display: flex; justify-content: center; } 阅读全文
posted @ 2020-10-22 15:20 霓裳依旧 阅读(2563) 评论(0) 推荐(0)
摘要: 原因:inline-block的换行符 解决方法:设置font-size:0; 去除inline-block元素间间距的N种方法 阅读全文
posted @ 2020-10-22 15:08 霓裳依旧 阅读(1344) 评论(0) 推荐(0)
上一页 1 2 3 4 5 6 7 8 ··· 20 下一页