Following array data I have generated with mysql_fetch_array() using PHP.
Array (
[0] => Array
(
[0] => 4
[msg_id] => 4
[1] => 1
[uid_fk] => 1
[2] => dddddddddddddd88234234
[message] => ddddddddd开发者_JS百科ddddd88234234
)
[1] => Array
(
[0] => 3
[msg_id] => 3
[1] => 1
[uid_fk] => 1
[2] => 2324234
[message] => 2324234
)
[2] => Array
(
[0] => 2
[msg_id] => 2
[1] => 1
[uid_fk] => 1
[2] => 123123
[message] => 123123
)
)
You could json_encode
(PHP) your array, then use $.parseJSON()
(jQuery).
精彩评论