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

浙公网安备 33010602011771号