liche update for upload file bug
This commit is contained in:
@@ -187,11 +187,15 @@
|
||||
if(1 == mode){
|
||||
//单张图替换对象
|
||||
if(Object.prototype.toString.call(source) == "[object Array]"){//源数据为数组
|
||||
source[0].src = v.src;
|
||||
source[0].value = v.value;
|
||||
source[0].width = v.width;
|
||||
source[0].height = v.height;
|
||||
source[0].rheight = v.rheight;
|
||||
if(0 == source.length){
|
||||
source.push(v);
|
||||
} else {
|
||||
source[0].src = v.src;
|
||||
source[0].value = v.value;
|
||||
source[0].width = v.width;
|
||||
source[0].height = v.height;
|
||||
source[0].rheight = v.rheight;
|
||||
}
|
||||
} else {//源数据为对象
|
||||
source.src = v.src;
|
||||
source.value = v.value;
|
||||
|
||||
@@ -73,9 +73,13 @@
|
||||
if(1 == mode){//只有一个替换
|
||||
//单个替换对象
|
||||
if(Object.prototype.toString.call(source) == "[object Array]"){//源数据为数组
|
||||
source[0].src = v.src;
|
||||
source[0].value = v.value;
|
||||
source[0].title = v.title;
|
||||
if(0 == source.length){
|
||||
source.push(v);
|
||||
} else {
|
||||
source[0].src = v.src;
|
||||
source[0].value = v.value;
|
||||
source[0].title = v.title;
|
||||
}
|
||||
} else {//源数据为对象
|
||||
source.src = v.src;
|
||||
source.value = v.value;
|
||||
|
||||
Reference in New Issue
Block a user