search

Home  >  Q&A  >  body text

What's happening here

QQ图片20181017095643.png

亲爱的自己亲爱的自己2325 days ago983

reply all(6)I'll reply

  • 胤彬-

    胤彬-2018-10-17 22:29:58

    Did you check the database and return the results directly in the controller?

    reply
    0
  • 亲爱的自己

    Yes, it is returned directly

    亲爱的自己 · 2018-10-18 00:02:31
    亲爱的自己

    I'll show you the code tomorrow

    亲爱的自己 · 2018-10-18 00:02:53
    胤彬-

    You try changing the database return type to collection

    胤彬- · 2018-10-18 09:46:55
    胤彬-

    database configuration

    胤彬- · 2018-10-18 14:03:40
    亲爱的自己

    Where to change the database return type?

    亲爱的自己 · 2018-10-18 12:55:34
  • 胤彬-

    胤彬-2018-10-17 21:00:07

    Your output is in HTML format by default, and an error will be reported if you return array type data. You need to change the configuration file to json format

    reply
    0
  • 亲爱的自己

    One is json and the other is html, two are configured

    亲爱的自己 · 2018-10-17 21:43:58
    亲爱的自己

    After changing to json, the page now displays all codes.

    亲爱的自己 · 2018-10-17 21:46:05
    胤彬-

    Are you returning something in the controller?

    胤彬- · 2018-10-17 22:14:20
  • 君君

    君君2018-10-17 13:09:33

    The data you returned is empty! ! !

    reply
    0
  • 亲爱的自己

    No, it’s written according to the video

    亲爱的自己 · 2018-10-17 13:19:24
    亲爱的自己

    What should be changed

    亲爱的自己 · 2018-10-17 13:31:33
  • Cancelreply