日期:2014-05-17 浏览次数:20659 次
<table align="center" border="1" id="filesTable" style="display:none"> <th>name</th> <th>size</th> <th>status</th> </table>
function fileQueued(file) { var table = document.getElementById("filesTable"); var row = table.insertRow(); var col1 = row.insertCell(); var col2 = row.insertCell(); var col3 = row.insertCell(); row.id = file.id; col1.innerHTML = file.name; col2.innerHTML = file.size; col3.innerHTML = showStatus(file.filestatus); }