为了账号安全,请及时绑定邮箱和手机立即绑定

json循环问题

json循环问题

_PHP_ 2017-07-06 10:18:32
json数据:[{"userID":"151","pay":"5.3","paywhat":"米饭1碗","paytime":"2017-07-04 09:25:14","payaddr":"0"},{"userID":"151","pay":"5.3","paywhat":"aa","paytime":"2017-07-04 17:52:58","payaddr":"0"},{"userID":"151","pay":"5.3","paywhat":"","paytime":"2017-07-05 10:04:41","payaddr":""},{"userID":"151","pay":"5.3","paywhat":"","paytime":"2017-07-05 10:05:00","payaddr":""},{"userID":"151","pay":"5.3","paywhat":"","paytime":"2017-07-05 10:05:18","payaddr":""}]ajax请求结果:因为使用了document.write();把原来的元素都替换了 但如果不使用document.write() 数据只能拿到一条;求大神解答;其实主要目的是把json数组循环到表格里
查看完整描述

1 回答

已采纳
?
李晓健

TA贡献1036条经验 获得超461个赞

把你的js代码  帖出来  帮你改

查看完整回答
反对 回复 2017-07-06
  • 1 回答
  • 0 关注
  • 1569 浏览
慕课专栏
更多

添加回答

举报

0/150
提交
取消
意见反馈 帮助中心 APP下载
官方微信