data['ele']=[{"model": "myapp.temp_element", "pk": 1, "fields": {"temp_id": "4nSTUfyhnFVi7ZjhfSVALx0DAqpVJtx9hqx5hSFZhTA", "element_name": "业务类别", "element_key": "keyword1"}}, {"model": "myapp.temp_element", "pk": 2, "fields": {"temp_id": "4nSTUfyhnFVi7ZjhfSVALx0DAqpVJtx9hqx5hSFZhTA", "element_name": "提交时间", "element_key": "keyword2"}}, {"model": "myapp.temp_element", "pk": 3, "fields": {"temp_id": "4nSTUfyhnFVi7ZjhfSVALx0DAqpVJtx9hqx5hSFZhTA", "element_name": "回复内容", "element_key": "keyword3"}}]
Json object in the output of the js alert (data [' ele]. Length); Will become 498, and to guide how to correct output length 3 in js, and traverse the output data [' ele '] in fields of value?
CodePudding user response:
Has solved the problem of your js