Home  >  Q&A  >  body text

java - 后台实现分页,并向前台传递rows,传递的JSON数据不完整

后台实现分页,将JSON对象传给前台,为什么只有第一个显示,其他的都不显示。。

为什么只有0:显示完整的关联school的信息。其他的不完整呢?

PHP中文网PHP中文网2741 days ago522

reply all(4)I'll reply

  • PHP中文网

    PHP中文网2017-04-18 10:21:56

    Because there is only 0school是一个对象,后面的都是一个值2, there is a problem with the data, check the data returned by the background.

    reply
    0
  • PHP中文网

    PHP中文网2017-04-18 10:21:56

    No matter how you look at it, it looks like there is a problem with the code writing. You can use dug to troubleshoot the problem. Looking at the data directly cannot answer your question

    reply
    0
  • 高洛峰

    高洛峰2017-04-18 10:21:56

    Look at the Chinese garbled characters, which method is used to return in the background? Just printwrite and see out.flush memory leak

    reply
    0
  • 迷茫

    迷茫2017-04-18 10:21:56

    Check the json returned by the background. The format of the first one is different from the following ones. The problem should be in the json data returned by the background.

    reply
    0
  • Cancelreply