<!DOCTYPE html> <html> <body> <h1>input formenctype 属性</h1> <p>formenctype 属性规定提交表单数据时应如何编码。</p> <form action="/index/demo/form_current.html" method="post"> <label for="fname">First name:</label> <input type="text" id="fname" name="fname"><br><br> <input type="submit" value="提交"> <input type="submit" formenctype="multipart/form-data" value="以 Multipart/form-data 提交"> </form> </body> </html>