Uploading file in a form without page refresh

后端 未结 4 2105
野性不改
野性不改 2021-01-06 07:13

I have this bit of code:

4条回答
  •  情歌与酒
    2021-01-06 07:47

    There are two methods:

    1. HTML5 supports File API.
    2. Create a hidden iframe, point the property 'target' of the form to the iframe's id.

提交回复
热议问题