search

Home  >  Q&A  >  body text

javascript - js 做上传头像,怎么把图片传到服务器

js 做上传头像,怎么把图片传到服务器

天蓬老师天蓬老师2804 days ago524

reply all(2)I'll reply

  • PHP中文网

    PHP中文网2017-04-18 10:57:37

    1.form file domain will refresh the page. You can try the iframe solution.

    2.flash, there are often pitfalls like version expiration

    3.ajax can use FormData, but is not compatible with lower versions.

    You can combine them and use them together if they are compatible with each other

    reply
    0
  • 大家讲道理

    大家讲道理2017-04-18 10:57:37

    1. iframe upload

    2. js picture plug-in

    reply
    0
  • Cancelreply