02 2020 档案

摘要:图片压缩的方法 // 图片压缩 compressImage(file, success, error) { // 图片小于1M不压缩 // if (file.size < Math.pow(1024, 2)) { // return success(file); // } const name = 阅读全文
posted @ 2020-02-22 15:09 ronle 阅读(297) 评论(0) 推荐(0)
摘要:html <span class="iconfont scan" @click="scan"> <input ref="camera" type="file" @change="toBase64" style="position: absolute;top:50rem" accept="image/ 阅读全文
posted @ 2020-02-17 13:41 ronle 阅读(926) 评论(0) 推荐(0)