09 2022 档案
摘要:getUrlParam(key) { // 获取url携带key对应val值 var str = new URLSearchParams(window.location.search) return str.get(key) } 调用方法: this.getUrlParam('quearyName'
阅读全文
摘要:<video width="100%" height="100%" muted x5-video-player-type="h5" controls controlsList='nodownload noplaybackrate' disablePictureInPicture preload="m
阅读全文
摘要:// 点击元素自身意外的dom const clickoutside = Vue.directive('clickoutside', { bind (el, binding, vnode, oldVnode) { function documentHandler (e) { // 如果是元素本体则返
阅读全文
摘要:add0 (m) { return m < 10 ? '0' + m : m }, // 时间戳转日期 format (time) { // shijianchuo是整数,否则要parseInt转换 var time1 = new Date(time) var year = time1.getFul
阅读全文