2016-10-27 01:57发布
return dataURL.replace(/^data:image/(png|jpg);base64,/, "");
这正则就是匹配这个字符串:"data:image/" + ("png"或者"jpg") + ";base64,"
"data:image/"
"png"
"jpg"
";base64,"
最多设置5个标签!
这正则就是匹配这个字符串:
"data:image/"
+ ("png"
或者"jpg"
) +";base64,"
一周热门 更多>