search

Home  >  Q&A  >  body text

Regarding the format of the ajax submitted data URL in thinkphp 5.1, an error will occur if you add curly brackets. Please give me some advice.

url If you add curly brackets, an error will occur. Write it according to teacher Peter's code. Please give me some advice

UU21VL5LXRK$(3U9]P){R(F.png4[RR0)9_BOI~0%)$YG)W}@X.png

#
萨羽墨萨羽墨1348 days ago1395

reply all(4)I'll reply

  • xxxxx

    xxxxx2021-03-20 17:38:25

    Support a ha\

    reply
    0
  • 查无此人

    查无此人2021-03-16 14:05:10

    I don’t have the code, so I can’t debug it.

    You can change this to: url:'index.php/index/user/insert',

    is also possible, and it is not necessary to use template tags.

    reply
    1
  • 萨羽墨

    Can you help me check it remotely? I've been working on this problem for a long time and haven't found a solution. I just followed what you said. Although there is no error, the data still cannot be submitted.

    萨羽墨 · 2021-03-16 14:17:49
    查无此人

    Then you print on $.ajax: console.log( $("#login").serialize() ); to see what data it is.

    查无此人 · 2021-03-16 16:15:15
  • Cancelreply