<input type="file" id="asd"/>
我想在用户 Select 后(提交表单之前)获得base64的图像
比如:
$(input).on('change',function(){
var data = $(this).val().base64file(); // it is not a plugin is just an example
alert(data);
});
I read about File API and other stuffs, I would like a simple and cross-browsers solution (IE6/IE7 excluded obviously)
谢谢你的帮助.