上一页 1 2 3 4 5 6 7 8 ··· 14 下一页
摘要: 1.原因:google浏览器内部判断了是不是PDF ,如果是就会启动内置的PDF阅读器。 解决:file-saver import FileSave from 'file-saver'; downloadPDF(URLToPDF,PDFName) { var oReq = new XMLHttpRe 阅读全文
posted @ 2020-07-02 11:29 Tutao1995 阅读(2580) 评论(0) 推荐(0) 编辑
摘要: 1.Composition API 1.新增setup() 执行时间是在以前 beforeCreate 和 created 之间 参数: props: 获取父组件传递的参数 context :context参数包含attr,emit,slots ;该对象中包含了一些在vue 2.x 中需要通过 th 阅读全文
posted @ 2020-06-04 17:55 Tutao1995 阅读(489) 评论(0) 推荐(0) 编辑
摘要: 1.播放采用方式 a.原生的video 标签 直接给标签src内容 b.video.js initVideoJs(){ // 中文报错 videojs.addLanguage('zh-CN', { "You aborted the media playback": "视频播放被终止", "A net 阅读全文
posted @ 2020-05-22 16:23 Tutao1995 阅读(1895) 评论(0) 推荐(0) 编辑
摘要: 给el-autocomplete 绑定 @keyup.native事件,在事件里给对应的绑定得值做处理 比如限制为纯数字 正数等 阅读全文
posted @ 2020-04-27 17:03 Tutao1995 阅读(2026) 评论(0) 推荐(0) 编辑
摘要: //获取前一天的0点到 23点 const start = new Date(); const end = new Date(); start.setTime(new Date(new Date().toLocaleDateString()).getTime() - 3600 * 1000 * 24 阅读全文
posted @ 2020-04-15 14:52 Tutao1995 阅读(112) 评论(0) 推荐(0) 编辑
摘要: // 防抖 export const debounce= (func, wait) => { var timeout; return function () { var context = this; var args = arguments; clearTimeout(timeout) timeo 阅读全文
posted @ 2020-04-02 16:17 Tutao1995 阅读(1542) 评论(1) 推荐(1) 编辑
摘要: if(flvjs.isSupported()){ // let videoBox = document.querySelector('#video'); let videoBox = this.$refs[this.boxname]; let flvPlayer = flvjs.createPlay 阅读全文
posted @ 2020-04-02 09:50 Tutao1995 阅读(2296) 评论(0) 推荐(0) 编辑
摘要: input:-webkit-autofill , textarea:-webkit-autofill, select:-webkit-autofill { -webkit-text-fill-color: #ededed !important; -webkit-box-shadow: 0 0 0px 阅读全文
posted @ 2020-03-16 11:24 Tutao1995 阅读(653) 评论(0) 推荐(0) 编辑
摘要: 1.Math.floor(xxx/2) = xxx >> 2 2.数字取整 Math.floor(xxx.xxxx) = xxx.xxxx | 0 3.整数去掉最后一位 Math.floor(xxxxx/10) xxxxx/10 | 0 4.字符串 -》 数字 +xxxxx Number(xxxxx 阅读全文
posted @ 2020-01-20 10:49 Tutao1995 阅读(169) 评论(0) 推荐(0) 编辑
摘要: this.xxx = this.$options.data().xxxx 初始化整个data Object.assign(this.$data,this.$options.data()) 阅读全文
posted @ 2020-01-14 15:04 Tutao1995 阅读(979) 评论(0) 推荐(0) 编辑
上一页 1 2 3 4 5 6 7 8 ··· 14 下一页