base64多图片上传如何和后台进行交互( 三 )


                    if(nowHeight){   
                        oParent.style.paddingTop = (oParent.offsetHeight - nowHeight)/2 + 'px';   
                    }   
                }
                index++; 
            }   
        }   
    }  
    function s(){  
        var submitArr = []; 
        for (var i = 0; i < dataArr.length; i++) { 
            if (dataArr[i]) { 
                submitArr.push(dataArr[i]); 
            } 
        } 
        $.ajax({   
            url : '/home/test/upload', 
              type : 'post',
            data : {"image":dataArr},   
            dataType: 'json',   
             success : function(data){   
                if (data =https://vvvtt.com/article/= 1) {
                    alert("图片上传当作功");
                }else{
                    alert("图片上传掉败");
                }
          }
        })   
    }
    oSelect.onclick=function(){  
        oInput.value = https://vvvtt.com/article/""; // 先将oInput值清空, 不然选择图片与前次不异时change事务不会触发
        $('.float').remove();  //清空已选图片 
        dataArr = []; 
         index = 0;    
             oInput.click();  
    }  
    oAdd.onclick=function(){ 
        oInput.value = https://vvvtt.com/article/""; // 先将oInput值清空, 不然选择图片与前次不异时change事务不会触发
        oInput.click();  
    }  

推荐阅读