随笔分类 -  vue/html/js/css

摘要:为什么浏览器设置倍速播放视频卡住不动啊啊啊 苦寻解决方式无果,试了好多api,最后用statechanged事件+重置currentTime解决的 video.js API video.js API-详细 <template> <el-dialog :visible.sync="visible" t 阅读全文
posted @ 2025-04-24 15:46 总是被使用 阅读(97) 评论(0) 推荐(0)
摘要:二次封装了一个jessibuca的组件 使用vuepress写文档一时不知如何引入jessibuca.js文件 于是搜索且验证以下可行方式 // .vuepress/config,js 文件 添加head配置项 module.exports = { ... head: [ ['script', { 阅读全文
posted @ 2025-03-07 16:06 总是被使用 阅读(75) 评论(0) 推荐(0)
摘要:与calc结合使用 $pl: 1,2,3; // 定义常量 @each $name in $pl { .pl#{$name} { padding-left: calc(16px + 12px * #{$name}); } } // 解析后相当于 .pl1 { padding-left: 16px + 阅读全文
posted @ 2024-12-27 15:40 总是被使用 阅读(118) 评论(0) 推荐(0)
摘要:使用fetch请求 export function postStream(data) { return fetch('url-请求地址', { method: 'post', body: JSON.stringfy(data), responseType: 'srteam', headers: { 阅读全文
posted @ 2024-11-26 11:27 总是被使用 阅读(1600) 评论(0) 推荐(0)
摘要:<template> <div> <!-- 把事件触发模式改为捕获 --> <div @click.capture="handleStop"> </div> <!-- 事件默认为冒泡模式 --> <div @click="handleStop"> </div> </div> <template> h 阅读全文
posted @ 2024-08-23 15:52 总是被使用 阅读(27) 评论(0) 推荐(0)
摘要:dom.style.cursor = `url(${require('./img/texture/cursor.png')}) 24 30, auto` url()——图片地址 24 30——图片x,y方向的位移 auto——图片获取出错时,鼠标的默认样式(必传) 阅读全文
posted @ 2024-08-19 17:18 总是被使用 阅读(77) 评论(0) 推荐(0)