摘要: if(window.history && window.history.pushState){ window.onpopstate=function(){ window.history.pushState('forward', null) window.history.forward(1) } } 阅读全文
posted @ 2023-03-30 11:21 everseven 阅读(52) 评论(0) 推荐(0)
摘要: getLimitedDate (reservationDate) { // 用户操作时间在限值前,申请退款按钮可操作; eg:预约日期2.28日,2.27日中午12:00为限值, let flag = false let today = new Date(new Date().toLocaleDat 阅读全文
posted @ 2023-03-30 11:18 everseven 阅读(21) 评论(0) 推荐(0)
摘要: .demo { -webkit-mask-image: -webkit-gradient( linear, 0 500, 0 0, from(rgba(0, 0, 0, 0)), color-stop(50%, rgba(0, 0, 0, 0)), to(rgba(0, 0, 0, 1)) ); . 阅读全文
posted @ 2023-01-04 16:18 everseven 阅读(302) 评论(0) 推荐(0)
摘要: getUrlParam(key) { // 获取url携带key对应val值 var str = new URLSearchParams(window.location.search) return str.get(key) } 调用方法: this.getUrlParam('quearyName' 阅读全文
posted @ 2022-09-28 10:37 everseven 阅读(22) 评论(0) 推荐(0)
摘要: <video width="100%" height="100%" muted x5-video-player-type="h5" controls controlsList='nodownload noplaybackrate' disablePictureInPicture preload="m 阅读全文
posted @ 2022-09-20 17:25 everseven 阅读(442) 评论(0) 推荐(0)
摘要: // 点击元素自身意外的dom const clickoutside = Vue.directive('clickoutside', { bind (el, binding, vnode, oldVnode) { function documentHandler (e) { // 如果是元素本体则返 阅读全文
posted @ 2022-09-16 17:00 everseven 阅读(35) 评论(0) 推荐(0)
摘要: add0 (m) { return m < 10 ? '0' + m : m }, // 时间戳转日期 format (time) { // shijianchuo是整数,否则要parseInt转换 var time1 = new Date(time) var year = time1.getFul 阅读全文
posted @ 2022-09-16 16:54 everseven 阅读(127) 评论(0) 推荐(0)
摘要: 重点: 1. 函数作用域,要去创建这个函数的作用域取值,如果再次函数作用域找不到变量值,顺着原型链一级一级往上找是否存在该变量值 2.当一个函数被调用完成之后,其执行上下文环境将被销毁,其中的变量也会被同时销毁 3.函数可以创建一个独立的作用域 闭包的核心内容: 函数调用完成之后,执行上下文环境不会 阅读全文
posted @ 2022-07-12 16:29 everseven 阅读(45) 评论(4) 推荐(0)
摘要: // 显示 <div v-show="showAllocationPay" ref="allocationPayRef" style="width:100%;height:275px;margin-top: 35px"></div> <img v-show="!showAllocationPay" 阅读全文
posted @ 2022-06-29 10:28 everseven 阅读(125) 评论(0) 推荐(0)
摘要: 更新: 下载方式比较 也可看看 下载的三种方式, 以防链接丢失 axios.post(url, param, { responseType: 'blob' }).then((res) => { console.log('res', res); const blob = res.data; const 阅读全文
posted @ 2022-02-10 15:10 everseven 阅读(492) 评论(0) 推荐(0)