AUTO JS pro获取图片base64值是非常简单的,网上有一大堆教程,但是能用的几乎太少了,甚至没有用。。。我们就用最简单通俗的方案给大家做讲解var tupian=images.read("/storage/emulated/0/本地图片路径");//先获取本地图片
var base64 = images.toBase64(tupian, "png", 100);//然后用命令images.toBase64即可获取指定图片的base64值
var url=encodeURIComponent(base64);//然后用命令encodeURIComponent 编码base64数据,encodeURIComponent可以将空格,符号都能编码,,,非常干净