上一页 1 2 3 4 5 6 7 ··· 28 下一页
摘要: /** * 获取视频时长,单位s * how to use * getVideoDuration('https://xx.xxx.mp4').then(res=>{ * console.log("视频时长",res) * }) */ export function getVideoDuration( 阅读全文
posted @ 2023-09-18 14:34 huihuihero 阅读(67) 评论(0) 推荐(0) 编辑
摘要: 移动端项目配置:在index.html里添加以下代码即可 <script> let sUserAgent = navigator.userAgent.toLowerCase(); let isIpad = sUserAgent.match(/ipad/i) == "ipad"; let isIpho 阅读全文
posted @ 2023-09-04 11:05 huihuihero 阅读(84) 评论(0) 推荐(0) 编辑
摘要: 使用的vue-cropper.js,官方文档 https://github.com/xyxiao001/vue-cropper 附图片各格式之间的转换 https://www.cnblogs.com/huihuihero/p/17667325.html 注意:下载vue-cropper.js时,使用 阅读全文
posted @ 2023-08-30 15:21 huihuihero 阅读(1140) 评论(0) 推荐(0) 编辑
摘要: ##贴代码imgformat-deal.js ``` /** * 图片file格式转为base64 * fileToBase64(file).then((res) => {console.log(res.data)}) */ export function fileToBase64(file) { 阅读全文
posted @ 2023-08-30 15:07 huihuihero 阅读(87) 评论(0) 推荐(0) 编辑
摘要: ##直接贴代码 ``` /** * 截取视频画面 * @param {*} url 视频播放链接 * @param {*} width 画面的截取宽度 * @param {*} height 图片的截取高度 */ export function cutVideoCover(url, width = 阅读全文
posted @ 2023-08-09 13:15 huihuihero 阅读(361) 评论(0) 推荐(0) 编辑
摘要: ##1、在项目根目录中加入此文件 https://files.cnblogs.com/files/huihuihero/.prettierrc.js ![](https://img2023.cnblogs.com/blog/1669868/202308/1669868-202308071907030 阅读全文
posted @ 2023-08-07 19:15 huihuihero 阅读(147) 评论(0) 推荐(0) 编辑
摘要: 转自:https://blog.csdn.net/qq_32429257/article/details/122339194 注:也可以用vant的组件 TextEllipsis 文本省略 https://vant-contrib.gitee.io/vant/#/zh-CN/text-ellipsi 阅读全文
posted @ 2023-07-25 10:57 huihuihero 阅读(90) 评论(0) 推荐(0) 编辑
摘要: https://blog.51cto.com/u_15417308/4513895 阅读全文
posted @ 2023-07-24 17:19 huihuihero 阅读(12) 评论(0) 推荐(0) 编辑
摘要: ###直播协议HLS和RTMP 直播技术一般有两种协议方式,分别是HLS和RTMP,两种协议分别的解释: HLS ,是苹果公司实现的基于 HTTP 的流媒体传输协议,全称 HTTP Live Streaming,可支持流媒体的直播和点播,主要应用在 iOS 系统,为 iOS 设备(如 iPhone、 阅读全文
posted @ 2023-07-24 16:13 huihuihero 阅读(715) 评论(0) 推荐(0) 编辑
摘要: ####如何实现横向滚动(兼容safari,微信,浏览器) ``` 实现横向滚动需要以下几点: 1、父级盒子要overflow-y:hidden;overflow-x:auto来防止页面宽度溢出,以及实现左右滚动效果 2、::-webkit-scrollbar { display: none;}隐藏 阅读全文
posted @ 2023-07-19 13:34 huihuihero 阅读(650) 评论(0) 推荐(0) 编辑
上一页 1 2 3 4 5 6 7 ··· 28 下一页