04 2024 档案
摘要:<!DOCTYPE html> <html lang="en"> <head> <meta charset="UTF-8"> <meta name="viewport" content="width=device-width, initial-scale=1.0"> <title>压缩demo</t
阅读全文
摘要:let formdata = new FormData() formdata.append('file', rpcParams.data,rpcParams.data.name) 将formdata中传入第三个参数
阅读全文
摘要:authJob(n){ if (n<=0) { return }else{ this.rpc.load.authJob(this.fileList[n-1].raw) .then((res) => { this.outerFileList.push(res) if (n-1==0) { this.$
阅读全文
摘要:onBeforeRead (file) { return new Promise((resolve, reject) => { new Compressorjs(file, { //压缩质量, 0-1 // quality: 0.6, // //转换的类型,默认为 image/png // // c
阅读全文