摘要: 引入: import Sortable from 'sortablejs'; 声明: sortable: any = null; 初始化: mounted() { const targetDom = this.$refs.table; this.sortable = new Sortable(tar 阅读全文
posted @ 2021-06-07 15:10 鬼鬼丶 阅读(512) 评论(0) 推荐(0) 编辑
摘要: 在untils 创建get-files-md5.js文件 import SparkMD5 from 'spark-md5'; export function createFileMd5(file: any) { // const spark = new SparkMD5(); return new 阅读全文
posted @ 2021-06-07 15:03 鬼鬼丶 阅读(238) 评论(0) 推荐(0) 编辑
摘要: onProgress: function(data) { var percent = parseInt(data.percent * 10000) / 100; data.percent = percent; option.onProgress(data); } 阅读全文
posted @ 2021-06-07 14:59 鬼鬼丶 阅读(82) 评论(0) 推荐(0) 编辑
摘要: function getTimes() { var obj_file = document.getElementById("upload"); var content = obj_file.files[0] console.log(content) //获取时长 var url = URL.crea 阅读全文
posted @ 2021-06-07 14:50 鬼鬼丶 阅读(61) 评论(0) 推荐(0) 编辑