form表單是整個頁面跳到服務器的地址而後提交數據;html
ajax是往這個地址post數據ajax
<form style="padding:0px;margin:0px;" target="upload" action="http://115.28.222.129:8080/cgi-bin/upload.cgi" id="uploadForm" name="uploadForm" encType="multipart/form-data" method="post"> <input name="file" type="file" multiple /> <input type="submit" value="submit"/> </form> //這個能夠指定返回的頁面是隱藏的iframe元素 <iframe name="upload" style="display:none"></iframe>