开发者

How to display array data with jquery.each()

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).

0

上一篇:

下一篇:

精彩评论

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

最新问答

问答排行榜