查看效果:http://sandbox.runjs.cn/show/tgvbo9nq 本地图片转Base64(从而可以预览图片): function localImgLoad() { var src = this.files[0]; var self = $(this); var read = new FileReader(); read.onload = function(e) { var html = "<img src=" + e.target.result + "
talk is cheap show me the code <input type="file" id="file" name="file" ng-model="Ctrl.picture" accept="image/jpeg,image/png,image/jpg" onchange="angular.element(this).scope().deCtrl.handleConFiles