如下圖;var objFile = document.getElementById('fileID');objFile.outerHTML=objFile.outerHTML.replace(/(>objFile.outerHTML=objFile.outerHTML.replace( ="). "/i,"$1"");