摘要:
<!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 阅读全文
摘要:
var randomStr=()=>Math.random().toString(32).slice(2) randomStr() 阅读全文
摘要:
在ie中存在兼容问题建议换成img 阅读全文
摘要:
pickerOptionsStart:{ disabledDate:(time)=> { // 获取当前日期并减少30天 // console.log(time,'..........tiem'); // console.log(time,'..........tiem'); if (this.en 阅读全文
摘要:
<template> <div class="about"> <h1>This is an about page</h1> <el-button type="primary" size="default" @click="onTest">测试</el-button> <div> </div> </d 阅读全文
摘要:
<template> <div class="about"> <h1>This is an about page</h1> <el-button type="primary" size="default" @click="onTest">测试</el-button> <div> </div> </d 阅读全文