12 2020 档案
摘要:<template> <ul> <li v-for="item in items" :key="item">{{ item }}</li> </ul> </template> <script> // 防抖 const debounce = (fn, delay) => { let timer = n
阅读全文
摘要:move.js const move = { install(Vue) { Vue.directive('move', { inserted(el, binding) { const { x = 0, y = 0, zIndex = 100 } = binding.value || Object.c
阅读全文
摘要:file形式访问 <body> <button id="takePhoto">takePhoto</button> <div id="app"></div> <script> class Camera { constructor(root, width = 480, height = 320) {
阅读全文
摘要:components 下 loading 下 Loading.vue <template> <transition name="fade"> <div class="loading_container" v-show="visible"> <div class="loading_wrapper">
阅读全文
摘要:看下图,仔细看↓ class VideoIcon { constructor(videoPath, iconSize = 32) { this.videoPath = videoPath; this.iconSize = iconSize; this.iconLink = null; this.vi
阅读全文
摘要:该方法使用了XHR来加载音乐文件,所以不能以file形式访问,可以使用http-server来构建一个本地服务访问 class Music { constructor(url, loop) { const AudioCtx = AudioContext || webkitAudioContext |
阅读全文

浙公网安备 33010602011771号