weixin_33725239 2013-04-11 19:40 采纳率: 0%
浏览 95

JSON格式获取的html表为什么不显示?

已经好几天了,我还没解决这个问题......我已经完成的工作是:编写了一个php脚本,它与我的JSON数据结构相呼应。现在,我正在尝试编写一个HTML脚本,它将以JSON格式获得结果,但在html表中对此进行回显。我对我的html页面进行了编码,但是由于某种原因,该表没有出现。

我的json_encode($res->getchAll())echo看起来是这样的:

[{"name":"Victoria 
  • 写回答

2条回答 默认 最新

  • weixin_33709219 2013-04-11 19:43
    关注

    Use data tables . It is very powerful and easy to use java script api. It provides a lot of features as well like sorting searching etc.

    You only have to change the format of JSON and rest all will be taken care by datatables.

    An example

    评论

报告相同问题?

悬赏问题

  • ¥15 请教一下各位,为什么我这个没有实现模拟点击
  • ¥15 执行 virtuoso 命令后,界面没有,cadence 启动不起来
  • ¥50 comfyui下连接animatediff节点生成视频质量非常差的原因
  • ¥20 有关区间dp的问题求解
  • ¥15 多电路系统共用电源的串扰问题
  • ¥15 slam rangenet++配置
  • ¥15 有没有研究水声通信方面的帮我改俩matlab代码
  • ¥15 ubuntu子系统密码忘记
  • ¥15 保护模式-系统加载-段寄存器
  • ¥15 电脑桌面设定一个区域禁止鼠标操作