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.
萨羽墨
萨羽墨 2021-03-16 11:32:52
0
4
1394

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

#
萨羽墨
萨羽墨

reply all(2)
欧阳

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 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.
    萨羽墨 author 2021-03-16 14:17:49
  • reply Then you print on $.ajax: console.log( $("#login").serialize() ); to see what data it is.
    查无此人 author 2021-03-16 16:15:15
Latest Downloads
More>
Web Effects
Website Source Code
Website Materials
Front End Template