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数组循环到表格里
添加回答
举报
0/150
提交
取消