search

Home  >  Q&A  >  body text

tp5 controller returns ajax data

How does the tp5 controller return ajax data to the front end

I used return but it appears directly on the browser, please give me some advice

LiuBoLiuBo2595 days ago934

reply all(1)I'll reply

  • 路过

    路过2017-10-23 16:52:18

    return json(your data);

    reply
    0
  • Cancelreply