首先我们在先创建两个控件,一个file控件,用来选择本地图片文件,再来创建一个img,用来存放转换后的数据。 <!doctype html> <html> <head> <meta charset="utf-8"> <title>无标题文档