以前IE浏览器会支持这样的js代码
document.createElement("<input type='file' name='upload'/>");,但现在我们必须这样写:
var uploadHTML = document.createElement("input");
uploadHTML.setAttribute("type", "file");
uploadHTML.setAttribute("name", "upload");
又如,换行这样写: uploadHTML = document.createElement("br");
document.getElementById("files").appendChild(uploadHTML);