开发者

Multi arrays in text file

开发者 https://www.devze.com 2023-03-30 06:24 出处:网络
Im using Datatables that via ajax gets multi text files in the following format: { \"aaData\": [ [ 10126, 10002253, 415 ]

Im using Datatables that via ajax gets multi text files in the following format:

{ "aaData": [
    [ 10126, 10002253, 415 ]
] }

The problem is开发者_Go百科 here that getting multi files is bad because of the latenency for first byte, so i would like to merge all the data into one file and tried the following format:

{ "aaData1": [
    [ 10126, 10002253, 415 ]
] 
"aaData2": [
    [ 10126, 10002253, 415 ]
] }

i also tried basicly merging al the files ( into one ), and i off course have renamed aaData to something usefull.

Question boils down to what is the correct format to have multi arrays in 1 text file?


Correct method is:

{ "aaData1": [ 
    [ 10126, 10002253, 415 ] 
],  
"aaData2": [ 
    [ 10126, 10002253, 415 ] 
] } 

Notice I was missing a comma

0

精彩评论

暂无评论...
验证码 换一张
取 消