图片上传的时候生成图片显示路径时,js一直报一个 Cannot read property “brand”or undefined错误
下面是是我的代码
upload = {
error:function (msg) {
common_ops.alert(msg);
},
success:function(image_key){
var html ='<img src="'+common_ops.buildPicUrl("brand",image_key)+'"> <span class="fa fa-times-circle del del_image" data="'+image_key+'"><i></i></span>';
if($(".upload_pic_wrap .pic-each").size()>0){
$(".upload_pic_wrap .pic-each").html(html);
}else {
$(".upload_pic_wrap").append('<span class="pic-each">'+ html + '</span>');
}
brand_set_ops.delete_img();
}
};