<li> <input type="file" class=" fl marright10" id="fileId" style="margin-top: 4px;"> <i class="I_icondataeditor fl"></i> </li> <li> <input type="file" class=" fl marright10" id="fileId" style="margin-top: 4px;"> <i class="I_icondataeditor fl"></i> </li>
已知用var objFile = document.getElementById("fileId");
可以弹出object HTMLInputElement
点击每个<li> 里面的i标签获取·该li的document.getElementById("fileId"); 怎么写
onclick="func('fileid')"
var func = function (id) {
var objFile = document.getElementById(id);
}