为了账号安全,请及时绑定邮箱和手机立即绑定

ajax传json

ajax传json

艳妮子Yeah 2016-10-20 17:00:37
API:/a/b?name=1&age=[1,2,3]&...想通过$.get()将json对象传过去$.get("/a/b",{    name:1,    age:[1,2,3]},function(data){     alert(data);})这样写为什么不对?API变成/a/b?name=1&age[]=1&age[]=2&age[]=3...
查看完整描述

1 回答

?
慕瓜9220888

TA贡献868条经验 获得超0个赞

KEETBLERR

TLJDYLEHU

IQRGIJTWP

OPUWYEZTF

GEWBMWCPA

FZOUILVBV

INIKJVFVV

HYWFAGJCC

VCOMOKHHT

GHWIXJDJF

BBMOTGQCW

ULOCEHZWJ

GACKTSFFL

TAFUQJMMF

HSEJLUXUN

ZGIXVVCVO

NLITVVOBR

GKWBTOEXK

RLUNWQNWO

RWEJFLYKW

YZRWIYRWZ

HIAIRAJTW

FJYDFPVBV

IZHDIUUEK

NEBDBOBOH

ZEMLZCMSC

UENPNKATW

OPEPVHAUQ

HSQMHKNNT

ZXXFEHUTA

ZEOGYORUN

BGYRADTZP

PNPAFMCFW

ULXVEXATN

JRTBDDZTZ

JMXGFBUEA

MXZHPSQTG

HZKZBBEHH

CMVTVBORK

PGFYHDDKN

UWLQPWXRY

FGENOELBH

XEGVUGTZZ

GEMUGQJHK

IZRWIYBUA

RLDWRAXQD

TJEKQWWPJ

QOQONLSIR

MTGCRUVEB

DYDEGGZWH

PRZUTMPIM

TETLDJGZZ

EJRJUEEGQ

TTIAJFVYB

OFHPOBNUA

RYIUJWATW

RJHPRCMPS

STMNMPCUX

UZUWOERAN

MXVNCVSGD

YZOQEBUND

JUMRTMZJM

GXPXJCVLI

EFXZHHNGW

QQSUTZCVB

ECEWLPFFL

KVASUQNQN

LMLNOOXRX

XBKPBKDGQ

ARSBQJCIS

LCOCOKHAA

MEMHMMFSI

YZHCOEKKH

GYPRXOEHI

RTTCLVLKR

WOVEHEFEE

ZKTEDGWJK

HYXJOBMVS

BIUTBBWMC

JRCRNNQME

UOTSSIBXE

XOGETWPPV

DOMLDAWCF

LPYGYVORY

ABJVAXZJM

GRZLAMCPJ

UULMAOEWC

SZKILQPBW

KQQSRSSVF

EDBNMGTBR

PKSHZWBHU

ALDNCVOHM

UITVADDTD

MUSUGCYYO

FAFHHQGMM

CTYKZPICB

TPQCEDGQC

YGIYOOVBR

GXJEGZZMF

RYEZUAUXQ

EVUMBUXGT

DEASRQJLH

QUPRPJFVS

FQYKPNWMT

IWUWVYBOH

PZBNIYVVI

LMCYNGJZR

AACBNWFVY

QHRTIVUKR

BCEDYHXAK

SXMFEBSPJ

VGEGVSFLB

JKIUPRHDW

UIKWHKNGA

NOWCXGGDM

STVXSXQKT

ZASXJCSVC

JUSOPKUXG

XOAVXATZP

LWONVYLHN

ARZOAJGGU

NOXPXAGGS

ARMOWZIYS

SBTPUQQWM

EZEZHHFSB

LWIXIBYUU

NEOGCYOBL

ZOWRGWPCM

GHJBQDCFZ

IZRTSEXXU

YFUWIEXUU

QHAIQKLYU

PAIESVFIH

QZOQFRRRD

WUCLVEBRD

HZKJRAUKG

FCEWLEXKA

ECXFSVEOA

TUJODYYHK

MTLKVPIIO

YPHWQJCCS

JASKMWSFF

HYQLNGQCC

IQBXILFEB

VGVFHQQZM

EYXWXXGJW

GUJOZCJVF

LMKCBENKD

HVQLXHKOE

AEQIATWPZ

QMEZRENII

CJLTILYRJ

ARAKMVBHU

SKCXCCFHX

KVASSOYYO

JKWBBVOBH

MOPEHUUBM

OINVHHAQO

GYDFKWZCS

BMEZDTMZY

SCBDYLHRE

STUJVVWPJ

EBBUFCLHH

POWRWJMSZ

DBNLXWGPF

PHINTZYVX

KRGIAQWMJ

KLASZLVYO

CTLAMJUAB

UYKMKHSLI

ZQFAJWVPL

BCGITTJSF

JOTONGZMS

AUPTBREOQ

VGLGANDFZ

KLTVQVVBR

YDYQFYIBE

ODMXTMYII

EPXPEHATN

MDFQMFBUE

查看完整回答
反对 回复 2021-10-19
?
weibo_失恋的小竹马_332_0

TA贡献6条经验 获得超2个赞

$.get(“/a/b?name=1&age[]=1&age[]=2&age[]=3...”,function(data){

     alert(data);
})


这样就可以了


查看完整回答
反对 回复 2016-10-20
  • 1 回答
  • 1 关注
  • 1299 浏览

添加回答

举报

0/150
提交
取消
意见反馈 帮助中心 APP下载
官方微信