search

Home  >  Q&A  >  body text

javascript - The keys of several parameters in ajax data are consistent, and then the previous values ​​are overwritten. How to solve this problem?

The interface provided by the background is

There are several fq in the parameters but the corresponding meanings are different
When I use ajax to transmit data to the background


In this case, the later value will overwrite the previous value. How to solve this

代言代言2825 days ago850

reply all(3)I'll reply

  • 習慣沉默

    習慣沉默2017-06-26 10:55:36

    fq:[recommended,source,type,transaction_type]
    pass to backend in array method

    reply
    0
  • 怪我咯

    怪我咯2017-06-26 10:55:36

    I agree with the method on the first floor, use an array to pass it

    reply
    0
  • 仅有的幸福

    仅有的幸福2017-06-26 10:55:36

    What I’m more curious about is why do the parameter names have to be the same?

    reply
    0
  • Cancelreply