|
@@ -1370,11 +1370,16 @@ $(function () {
|
|
|
var file = tag.files[0];
|
|
|
var imgSrc;
|
|
|
var reader = new FileReader();
|
|
|
- reader.readAsDataURL(file);
|
|
|
- reader.onload = function () {
|
|
|
- imgSrc = this.result;
|
|
|
- $("#photoImg").attr("src", imgSrc);
|
|
|
- };
|
|
|
+ console.log(file)
|
|
|
+ if(toString.call(file) === '[object Blob]' || toString.call(file) === '[object File]'){
|
|
|
+ reader.readAsDataURL(file);
|
|
|
+ reader.onload = function () {
|
|
|
+ imgSrc = this.result;
|
|
|
+ $("#photoImg").attr("src", imgSrc);
|
|
|
+ };
|
|
|
+ }else{
|
|
|
+ alert('图片或浏览器不支持,请更换!!');
|
|
|
+ }
|
|
|
});
|
|
|
TalentInfoInfoDlg.setNoChangeField();
|
|
|
$("#talent_condition").on('chosen:ready', function (e, params) {
|