如果我想发出一个请求,但返回多组响应,我将如何将它们分开以便能够在 jQuery 中解析它们并获得.length
每一组的响应?
第一组(A)
[
{"name":"Tu\u011Frul","surname":"Topuz","message":"Hello World"}
,{"name":"Tu\u011Frul","surname":"Topuz","message":"Hello World"}
]
第二组(B)
[
{"name":"Tu\u011Frul","surname":"Topuz","message":"Hello World"}
,{"name":"Tu\u011Frul","surname":"Topuz","message":"Hello World"}
]
总响应(单个请求):
[
{"name":"Tu\u011Frul","surname":"Topuz","message":"Hello World"}
,{"name":"Tu\u011Frul","surname":"Topuz","message":"Hello World"}
]
,[
{"name":"Tu\u011Frul","surname":"Topuz","message":"Hello World"}
,{"name":"Tu\u011Frul","surname":"Topuz","message":"Hello World"}
]
还是我会以另一种方式将其退回以正确执行此操作?还是我必须分开做,我更愿意将其保留在一个响应中。