摘要:
JS 金额逗号分隔保留两位小数 //判断是否数字 function isNumber(num) { return (num + "").match(/^[-]?\d+[.]?\d*$/g); } function eraseThousandSplit(num) { num = "" + num; r 阅读全文
摘要:
使用image-conversion实现图片压缩到指定大小 // 导入 import * as imageConversion from 'image-conversion' /** * 压缩小图到100kb */ compressImg(file) { console.log('file: ', 阅读全文