base64去掉前缀的正则校验

.replace(/^data:image\/\w+;base64,/, "")

适用于:.jpg,.jpeg,.png,.JPG,.JPEG

posted @ 2021-04-27 16:22  小蘑菇123  阅读(1842)  评论(0编辑  收藏  举报