js 我已经获取到form1所有图片文件的ID。如何才能实现上传?请大神指导最好有详细代码。
functionupLoad(){varstrUpLoadIDList="";for(vari=0;i<form1.elements.length;i++){varobj...
function upLoad() {
var strUpLoadIDList = "";
for (var i = 0; i < form1.elements.length; i++) {
var obj = form1.elements[i];
if (obj.type == "file" && obj.value != "") {
strUpLoadIDList += obj.id + ";"
}
arrUploadIDList = strUpLoadIDList.split(";");
} 展开
var strUpLoadIDList = "";
for (var i = 0; i < form1.elements.length; i++) {
var obj = form1.elements[i];
if (obj.type == "file" && obj.value != "") {
strUpLoadIDList += obj.id + ";"
}
arrUploadIDList = strUpLoadIDList.split(";");
} 展开
1个回答
推荐律师服务:
若未解决您的问题,请您详细描述您的问题,通过百度律临进行免费专业咨询