Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

AJAX数据传递格式 #8

Open
MaMaFish opened this issue Mar 3, 2020 · 0 comments
Open

AJAX数据传递格式 #8

MaMaFish opened this issue Mar 3, 2020 · 0 comments

Comments

@MaMaFish
Copy link
Owner

MaMaFish commented Mar 3, 2020

contentType:

  1. application/x-www-form-urlencoded(默认值)
    eg: name=Roderick&badge=70100111
  2. application/json
    传递JSON string
    eg: "{'name':'Roderick','badge':'70100416'}"
    不添加contentType:application/json,可以向后台传递JSON对象
  3. multipart/form-data
  4. text/xml
@MaMaFish MaMaFish changed the title 第8题:AJAX数据传递格式 AJAX数据传递格式 Sep 24, 2020
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant