单击时单独加载关联的JSON元素

时间:2018-05-15 20:22:52

标签: javascript jquery arrays json ajax

目前,我正在从ldap服务器加载一个大型JSON对象,以显示所有组和成员。我能够解析整个文件并分离出组和成员,但不能分离它们的关联。我想要做的是加载组(分页),然后让用户单击该组以仅加载那些关联的用户。但是,我在解决如何做到这一点时遇到了问题。以下是我用来加载所有组和成员的内容。如果有帮助,我确实有另一个端点可用(ldap / groups / members)。

adb shell "
   input touchscreen swipe 126 459 413 472 1000 & \ # 1th line 
   input touchscreen swipe 413 472 72  776 1000 & \ # 2th line
   input touchscreen swipe 72  776 407 769 1000 | echo done # 3th line" 


126 459   =   302 446   =   413 472
===================================
112 599   =   268 613   =   470 612
===================================
72  776   =   263 802   =   407 769

input touchscreen swipe <x1> <y1> <x2> <y2> [duration(ms)] (Default: touchscreen)

0 个答案:

没有答案
相关问题