Tp5 ajax value transfer problem

foreground code

  $.ajax({
      type:"POST",
      url:"__URL__/add",
      data:{content:data}
  });
  

data is an array
clipboard.png


$data $_REQUEST

ajax

clipboard.png


clipboard.png

Mar.28,2021

if the format is complex, you can consider:

  

you check the url first, right?
and Bingtang Sydney says you take a picture of body, too.
the third tp5 gets the request variable without the request () shortcut function or instantiates the request class

.
Menu