下面先给大家看下代码 <form id=uploadFileForm2 name=uploadFileForm2 enctype=multipart/form-data method=post> <input type=file name=excelfile id=dataFile class=dataFile accept=application/vnd.openxmlformats-officedocument.spreadsheetml.sheet />