时间不在于你拥有多少,而在于你怎样使用
Jan 15, 2019点击
容易忘记的小知识
1234
const isLt2M = file.size / 1024 / 1024 < 2if (!isLt2M) { defer.reject('图片必须小于2MB!')}